FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.dg / init / array2.C
blobca03ff39c57d73e2499eeb91699adc82e389ad09
1 // Check that the type of an array is set correctly when flat initializers
2 // are used.
4 // { dg-do compile }
6 struct s { int a; int b; };
7 struct s x[] = { 1, 2, 3, 4 };
8 int y[sizeof (x) == 2 * sizeof (x[0])? 1 : -1];