aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c99-flex-array-5.c
blob: 11c8d1cf2c1a14df778628a09a8a5bbf94cc31c8 (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 "error: flexible array member in union" } */