1 class __attribute__((unused)) C;
2 struct __attribute__((unused)) S;
3 union __attribute__((unused)) U;
5 enum __attribute__((unused)) e; // { dg-warning "already defined" }
7 struct __attribute((unused)) B *p; // { dg-warning "attributes" }
9 template <class T> struct A { };
10 struct __attribute((unused)) A<int>; // { dg-warning "attributes" }