re PR c++/18126 (sizeof compound-literal not parsed correctly)
[gcc.git] / gcc / testsuite / g++.dg / ext / sizeof-complit.C
1 // PR c++/18126
2 // { dg-options "" }
3
4 struct s { int a; int b; };
5 char x[((sizeof (struct s){ 1, 2 }) == sizeof (struct s)) ? 1 : -1];