Debian Codegraph @

gcc/testsuite/g++.dg/init/pr71516.C

raw
1 // PR c++/71516
2 // { dg-do compile }
3
4 struct A; // { dg-message "forward declaration of" }
5 struct B
6 {
7 static A a;
8 };
9 A B::a = A(); // { dg-error "has initializer but incomplete type|invalid use of incomplete type" }
10 struct A {};