rt_gccstream/gcc/testsuite/gcc.dg/init-empty-1.c

10 lines
259 B
C

/* 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){ };