1 /* Test for anonymous structures and unions in C1X. Test for invalid
3 /* { dg-do compile } */
4 /* { dg-options "-std=c1x -pedantic-errors" } */
14 struct s0
; /* { dg-error "declaration does not declare anything" } */
20 s0
; /* { dg-error "declaration does not declare anything" } */
31 int i
; /* { dg-error "duplicate member" } */
41 }; /* { dg-error "declaration does not declare anything" } */
56 x
.i
= 0; /* { dg-error "has no member" } */