blob: 337e3db3e177875709a0e80d454122f14a9acc8f (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* PR c/64709 */
/* { dg-do compile } */
/* { dg-options "-Wmissing-field-initializers" } */
struct S { int a, b; };
void
foo (void)
{
struct S s[] = { { 1, 2 }, { 0 } }; /* { dg-bogus "missing initializer for field" } */
}
|