1 /* { dg-do compile } */
2 /* { dg-options "-Wmissing-braces -Wmissing-field-initializers" } */
3
4 struct a {
5 int x, y, z;
6 };
7
8 struct b {
9 struct a w, z;
10 };
11
12 int main (void)
13 {
14 struct a az = { 0 };
15 struct a anz = { 1 }; /* { dg-warning "missing initializer for" } */
16 struct a aez = { 0, 0 }; /* { dg-warning "missing initializer for" } */
17
18 struct b bz = { 0 };
19 struct b bnz = { 0, 0, 0, 0, 0, 0 }; /* { dg-warning "missing braces" } */
20
21 return 0;
22 }