summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c99-flex-array-typedef-5.c
blob: 2d1fbe1c13084eca3830c9181e42a3d6f2150b48 (plain)
1
2
3
4
5
6
/* Test for flexible array members: not permitted in unions.  */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */

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