Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / c90-anon-struct-1.c
bloba3eb7f7e392d78efe5b9508d2c7655fe91d14f8f
1 /* Test for anonymous structures and unions not permitted in C90. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
5 struct s
7 int a;
8 struct
10 int b;
11 }; /* { dg-error "unnamed structs" } */