Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2
3 class C;
4 struct S;
5 union U;
6 enum e {};
7 enum [[gnu::unused]] e; // { dg-warning "already defined" }
8
9 struct [[gnu::unused]] B *p; // { dg-warning "attributes" }
10
11 template <class T> struct A { };
12 struct [[gnu::unused]] A<int>; // { dg-warning "attributes" }