Add shadowing example

This commit is contained in:
Alex Hirsch 2020-02-13 22:32:08 +01:00
parent 45c3d5a126
commit 16d8beaab0
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,31 @@
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;
}

View File

View File

@ -0,0 +1 @@
1234542