Add dangling_else example
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
int main()
|
||||||
|
{
|
||||||
|
if (true)
|
||||||
|
if (false)
|
||||||
|
print("foo");
|
||||||
|
else
|
||||||
|
print("bar");
|
||||||
|
|
||||||
|
print_nl();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
bar
|
||||||
Reference in New Issue
Block a user