summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr63480.c
blob: e720e0ddd3d2d4808e644914b80080ac6a466448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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){ };
}