Files
lib_compiler/tests/large_values.txt
2024-04-13 15:29:53 +02:00

12 lines
304 B
Plaintext

import "libc";
VAL :: -9223372036854775800;
AFTER_VAL :: ^;
main :: proc(): int {
#static_assert(VAL == -9223372036854775800);
const_value: llong = -9223372036854775800;
enum_value: llong = VAL;
assert(const_value == enum_value);
assert(AFTER_VAL == const_value + 1);
return 0;
}