OSDN Git Service

* c-decl.c (grokfield): Allow typedefs for anonymous structs and
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / c90-anon-struct-1.c
1 /* Test for anonymous structures and unions not permitted in C90.  */
2 /* { dg-do compile } */
3 /* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
4
5 struct s
6 {
7   int a;
8   struct
9   {
10     int b;
11   }; /* { dg-error "unnamed structs" } */
12 };