Extend issue191-4.c.
@@ -9,7 +9,8 @@ typedef struct Foo {
void abort (void);
int main () {
Foo foo = (Foo){.data[1] = {1}};
- Foo foo2 = (Foo){.data[1] = {1}, {2}};
- if (foo.data[1].x != 1 || foo2.data[1].x != 1 || foo2.data[2].x != 2) abort ();
+ Foo foo2 = (Foo){.data[1].x = 1, {2}, .data[3] = {3}};
+ if (foo.data[1].x != 1 || foo2.data[1].x != 1 || foo2.data[2].x != 2 || foo2.data[3].x != 3)
+ abort ();
return 0;
}
