summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/struct-parse-2.c
blob: 559411a19cf22d21f6e60cb19499208a140ce00d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c/35437 */
/* { dg-do "compile" } */

struct A
{
  int i;
  struct A a; /* { dg-error "has incomplete type" } */
};

void foo()
{
  struct A b = { 0 };
}