summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c99-flex-array-5.c
blob: 385b0cb959e4267c66fcac1ec0aff99ae12a6ceb (plain)
1
2
3
4
5
6
/* Test for flexible array members: not permitted in unions.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */

union u { int a; char b[]; }; /* { dg-error "flexible array member in union" } */