Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/gen-attrs-83.C

raw
1 // { dg-do compile { target c++11 } }
2
3 struct A {};
4 struct B {};
5 struct C {};
6 struct D : [[]] [[]] A,
7 [[]] virtual public B, [[]] [[]] [[]] public virtual C {};
8 struct E : [[gnu::deprecated]] A, // { dg-warning "attributes on base specifiers are ignored" }
9 [[gnu::deprecated]] virtual public B, // { dg-warning "attributes on base specifiers are ignored" }
10 [[gnu::deprecated]] public virtual C {}; // { dg-warning "attributes on base specifiers are ignored" }