Commit d1877289 by Jason Merrill

add loop and switch variants

From-SVN: r56437
parent 87798189
......@@ -17,6 +17,22 @@ int main()
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 -
;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment