repos / gbc

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

gbc / tests
xplshn  ·  2025-09-10

case.b

B
 1main() {
 2    extrn puts;
 3    auto x; x = 2;
 4    switch (x) {
 5        case 1:
 6            puts("one");
 7            exit(1);
 8        case 2:
 9            puts("two");
10            exit(0);
11        default:
12            puts("other");
13            exit(1);
14    }
15    return(0);
16}