summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/init-empty-1.c
blob: 39a5174ba846ce001627f3d3accbd32f41ba4e8e (plain)
1
2
3
4
5
6
7
8
9
/* Test diagnostic for empty initializer braces.  Test with no special
   options.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */

struct s { int a; } x = { };

struct s *p = &(struct s){ };