Add dangling_else example
This commit is contained in:
parent
16d8beaab0
commit
de49abc455
12
examples/dangling_else/dangling_else.mc
Normal file
12
examples/dangling_else/dangling_else.mc
Normal file
@ -0,0 +1,12 @@
|
||||
int main()
|
||||
{
|
||||
if (true)
|
||||
if (false)
|
||||
print("foo");
|
||||
else
|
||||
print("bar");
|
||||
|
||||
print_nl();
|
||||
|
||||
return 0;
|
||||
}
|
0
examples/dangling_else/dangling_else.stdin.txt
Normal file
0
examples/dangling_else/dangling_else.stdin.txt
Normal file
1
examples/dangling_else/dangling_else.stdout.txt
Normal file
1
examples/dangling_else/dangling_else.stdout.txt
Normal file
@ -0,0 +1 @@
|
||||
bar
|
Loading…
Reference in New Issue
Block a user