repos / gbc

GBC - Go B Compiler
git clone https://github.com/xplshn/gbc.git

gbc / tests
xplshn  ·  2025-08-13

compile-overflow.b

B
 1// Originally taken from https://github.com/tsoding/b/pull/173
 2// After https://github.com/tsoding/b/pull/197 we do not expect it to fail anymore.
 3main() {
 4    extrn printf;
 5    auto x,y,z;
 6    x = 9223372036854775808;
 7    y = 0x8000000000000000;
 8    z = 01000000000000000000000;
 9    printf("x = %llX\n", x);
10    printf("y = %llX\n", y);
11    printf("z = %llX\n", z);
12}