gcc/testsuite/g++.dg/warn/Wsubobject-linkage-1.C
raw| 1 | // PR c++/53184 |
| 2 | |
| 3 | typedef volatile struct { } Foo; |
| 4 | |
| 5 | #line 6 "foo.C" |
| 6 | struct Bar { Foo foo; }; // { dg-warning "no linkage" } |
| 7 | // { dg-bogus "anonymous namespace" "" { target *-*-* } .-1 } |
| 8 | struct Bar2 : Foo { }; // { dg-warning "no linkage" } |
| 9 | // { dg-bogus "anonymous namespace" "" { target *-*-* } .-1 } |