2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20030109-1.c
blob1bea931f64ca9fc8bcdb0cf016b48d2d30217a18
1 /* PR c/8032 */
2 /* Verify that an empty initializer inside a partial
3 parent initializer doesn't confuse GCC. */
5 struct X
7 int a;
8 int b;
9 int z[];
12 struct X x = { .b = 40, .z = {} };
14 int main ()
16 if (x.b != 40)
17 abort ();
19 return 0;