rt_gccstream/gcc/testsuite/gcc.dg/struct-parse-2.c

14 lines
160 B
C

/* PR c/35437 */
/* { dg-do "compile" } */
struct A
{
int i;
struct A a; /* { dg-error "has incomplete type" } */
};
void foo()
{
struct A b = { 0 };
}