1 /* Test for invalid uses of flexible array members. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
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
; };