gcc/testsuite/g++.dg/cpp0x/gen-attrs-86.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | |
| 3 | struct S {}; |
| 4 | struct S [[gnu::deprecated]]; // { dg-warning "attribute ignored" } |
| 5 | // { dg-message "an attribute that appertains to a type-specifier is ignored" "" { target *-*-* } .-1 } |
| 6 | enum E {}; |
| 7 | enum E [[gnu::deprecated]]; // { dg-warning "attribute ignored" } |
| 8 | // { dg-message "an attribute that appertains to a type-specifier is ignored" "" { target *-*-* } .-1 } |