repos / gbc

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

gbc / tests
xplshn  ·  2025-09-10

aliasType.bx

Bx
 1type int Age;
 2extrn printf;
 3
 4asOf := "29/08/2025";
 5
 6Age getAge() {
 7    return (Age(16));
 8}
 9
10main() {
11    auto myAge = getAge();
12    printf("%d\n", int(myAge));
13
14    if (myAge / 16 == 1) {
15        printf("Yes, but only as of %s\n", asOf);
16    }
17
18    return(0);
19}