1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/* PR c/8032 */ /* Verify that an empty initializer inside a partial parent initializer doesn't confuse GCC. */ struct X { int a; int b; int z[]; }; struct X x = { .b = 40, .z = {} }; int main () { if (x.b != 40) abort (); return 0; }