Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / gen-attrs-86.C
blobbc3384686d647f49c20abcd08f21bf38dc2cc53a
1 // { dg-do compile { target c++11 } }
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 }