summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20050620-1.c
blob: befdd9636500cfc8fe7db1bd4f67bee5796ed922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/22028 */
/* { dg-do compile } */
/* { dg-options "" } */

void
foo (void)
{
  struct { int i[]; } u;	/* { dg-error "flexible array member" } */
}

void
bar (void)
{
  struct { struct a b; } c;	/* { dg-error "has incomplete type" } */
}