Fix #198: integer out of range
This commit is contained in:
parent
4784616d98
commit
34043bd5af
3 changed files with 34 additions and 15 deletions
|
|
@ -33,6 +33,9 @@ extern "C" {
|
|||
#define EQ5 AVAL != BVAL
|
||||
#define EQ6 AVAL == BVAL
|
||||
|
||||
// testing integer out of long int range
|
||||
#define INT_FAST16_MIN (-9223372036854775807L-1)
|
||||
|
||||
#define SIZEOF sizeof(char)
|
||||
#define REG_STR "regular string"
|
||||
#define NOTSUPPORTEDSTR "not a " REG_STR
|
||||
|
|
|
|||
|
|
@ -131,6 +131,8 @@ assert SIZEOF == 1
|
|||
assert COERCE == 645635670332'u64
|
||||
assert COERCE2 == 645635670332'i64
|
||||
|
||||
assert INT_FAST16_MIN == -9223372036854775807'i64 - 1
|
||||
|
||||
assert BINEXPR == 5
|
||||
assert BOOL == true
|
||||
assert MATHEXPR == -99
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue