summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash49.C
blob: 07d7c3b2f95373cdc1c55f45e002290801d9f7e8 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/37552
// { dg-do compile }

extern struct A a[1];	// { dg-error "forward declaration" }

void
foo ()
{
  a[0];			// { dg-error "invalid use of incomplete type" }
}