Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / anon-struct-5.c
blobf7d1278963c87bf954db4250c4b06fcc2b51f053
1 /* Test bad warning for anonymous int in structure. Bug 17189. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c99 -pedantic-errors" } */
5 struct Foo { int; }; /* { dg-bogus "unnamed" } */
6 /* { dg-error "error: declaration does not declare anything" "int;" { target *-*-* } 5 } */
7 /* { dg-error "error: struct has no members" "no members" { target *-*-* } 5 } */