Skip to content
Snippets Groups Projects
Commit d1877289 authored by Jason Merrill's avatar Jason Merrill
Browse files

add loop and switch variants

From-SVN: r56437
parent 87798189
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,22 @@ int main() ...@@ -17,6 +17,22 @@ int main()
char j; char j;
} }
while (int i = 0) // ERROR - XFAIL *-*-*
{
int i; // ERROR - XFAIL *-*-*
}
for (; int i = 0; ) // ERROR - XFAIL *-*-*
{
int i; // ERROR - XFAIL *-*-*
}
switch (int i = 0) // ERROR - XFAIL *-*-*
{
default:
int i; // ERROR - XFAIL *-*-*
}
if (struct A { operator int () { return 1; } } *foo = new A) // ERROR - if (struct A { operator int () { return 1; } } *foo = new A) // ERROR -
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment