Debian Codegraph @

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

raw
1 // PR c++/19963
2 // { dg-do compile }
3
4 struct A;
5
6 struct B
7 {
8 A a : 1; // { dg-error "5:field .a. has incomplete type .A" }
9 };
10
11 struct S
12 {
13 S : 1; // { dg-error "incomplete" }
14 };