Erythro/tests/globals
Curle 264c50509e
Allow global-scope declarations
Function-local scope is still WIP, but you can now define things outside of function blocks.
2020-09-13 23:41:46 +01:00

16 lines
190 B
Plaintext

int x, y;
int* z;
void :: main() {
int a, b, c;
b = 3; c = 8;
a = b + c * 10;
PrintInteger(a);
x = 12; PrintInteger(x);
z = &x;
y = *z;
PrintInteger(y);
}