3 namespace { struct Foo { }; }
6 struct Bar { Foo foo; }; // { dg-warning "anonymous namespace" }
7 // { dg-bogus "no linkage" "" { target *-*-* } 6 }
8 struct Bar2 : Foo { }; // { dg-warning "anonymous namespace" }
9 // { dg-bogus "no linkage" "" { target *-*-* } 8 }