2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / anon-struct-5.c
blobe283e0d1692124d6f36b5bd8f7c5006d4b71eafe
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 "declaration does not declare anything" "int;" { target *-*-* } .-1 } */
7 /* { dg-error "struct has no members" "no members" { target *-*-* } .-2 } */