PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-flex-array-typedef-1.c
blob8c3b71247420fb23251cf187276030c9a6779958
1 /* Test for invalid uses of flexible array members. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
5 typedef int A[];
6 struct s1 { A x; }; /* { dg-error "no named members" "members" } */
7 struct s2 { int :1; A x; }; /* { dg-error "no named members" "members" } */
8 struct s3 { A x; int y; }; /* { dg-error "not at end" "not at end" } */
9 struct s4 { int x; A y; };