Debian Codegraph @

gcc/testsuite/g++.dg/other/pr77626.C

raw
1 // PR c++/77626
2 // { dg-do compile }
3
4 struct B; // { dg-message "forward declaration of" }
5 struct A { struct B b; }; // { dg-error "has incomplete type" }
6 void bar (int);
7
8 void
9 foo ()
10 {
11 A a;
12 bar ((int &) a);
13 }