uibk_703602-Compiler-Constr.../examples/shadowing/shadowing.mc
2020-02-13 22:42:18 +01:00

32 lines
245 B
MonkeyC

int main()
{
int x;
x = 1;
print_int(x);
{
x = 2;
print_int(x);
int x;
x = 3;
print_int(x);
{
x = 4;
print_int(x);
int x;
x = 5;
print_int(x);
}
print_int(x);
}
print_int(x);
print_nl();
return 0;
}