OSDN Git Service

* c-decl.c (grokfield): Allow typedefs for anonymous structs and
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / struct-parse-2.c
1 /* PR c/35437 */
2 /* { dg-do "compile" } */
3
4 struct A
5 {
6   int i;
7   struct A a; /* { dg-error "has incomplete type" } */
8 };
9
10 void foo()
11 {
12   struct A b = { 0 };
13 }