PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / pr53119.c
blob93cd3fd8a5e44980a9edced92bae044a302ef560
1 /* { dg-do compile } */
2 /* { dg-options "-Wmissing-braces -Wmissing-field-initializers" } */
4 struct a {
5 int x, y, z;
6 };
8 struct b {
9 struct a w, z;
12 int main (void)
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" } */
18 struct b bz = { 0 };
19 struct b bnz = { 0, 0, 0, 0, 0, 0 }; /* { dg-warning "missing braces" } */
21 return 0;