Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2
3 struct S {};
4 struct S [[gnu::deprecated]] s; // { dg-warning "attribute ignored" }
5 // { dg-message "an attribute that appertains to a type-specifier is ignored" "" { target *-*-* } .-1 }
6 enum E {} [[gnu::deprecated]]; // { dg-warning "attribute ignored in declaration of 'enum E'" }
7 // { dg-message "attribute for 'enum E' must follow the 'enum' keyword" "" { target *-*-* } .-1 }