add loop and switch variants

From-SVN: r56437
This commit is contained in:
Jason Merrill 2002-08-19 06:48:15 -04:00
parent 8779818966
commit d187728946

View File

@ -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 -
;