3 // Negative testcase for decls in conditions.
9 if (int i = 1) // ERROR - , XFAIL *-*-*
11 char i; // ERROR - , XFAIL *-*-*
16 short i; // ERROR - , XFAIL *-*-*
20 if (struct A { operator int () { return 1; } } *foo = new A) // ERROR -
25 if (enum A { one, two, three } foo = one) // ERROR -
28 struct B { operator int () { return 2; } };
30 if (struct B * foo = new B)
33 if (int f () = 1) // ERROR -
36 if (int a[2] = {1, 2}) // ERROR -