aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/struct-parse-2.c
blob: 6d01f3e88aa6aac47fa902b7864ade59ace1d74f (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 };
}