NetBSD/gnu/dist/gcc4/gcc/testsuite/gcc.dg/940510-1.c

4 lines
164 B
C

/* { dg-do compile } */
/* { dg-options "-std=c89 -pedantic" } */
struct { int a[]; } x = { 0 }; /* { dg-error "(flexible array member)|(near initialization)" } */