blob: e720e0ddd3d2d4808e644914b80080ac6a466448 [file] [log] [blame]
/* PR c/63480 */
/* { dg-do compile } */
/* { dg-options "-Wmissing-field-initializers" } */
/* Test that we don't warn about initializing with { }. */
struct S { int a, b, c; } s = { };
void
foo (void)
{
struct S s = { };
struct S s2 = (struct S){ };
}