Debian Codegraph @

gcc/testsuite/g++.dg/parse/crash49.C

raw
1 // PR c++/37552
2 // { dg-do compile }
3
4 extern struct A a[1]; // { dg-message "forward declaration" }
5
6 void
7 foo ()
8 {
9 a[0]; // { dg-error "invalid use of incomplete type" }
10 }