gcc/testsuite/g++.dg/ext/attrib9.C
raw| 1 | class __attribute__((unused)) C; |
| 2 | struct __attribute__((unused)) S; |
| 3 | union __attribute__((unused)) U; |
| 4 | enum e {}; |
| 5 | enum __attribute__((unused)) e; // { dg-warning "already defined" } |
| 6 | |
| 7 | struct __attribute((unused)) B *p; // { dg-warning "attributes" } |
| 8 | |
| 9 | template <class T> struct A { }; |
| 10 | struct __attribute((unused)) A<int>; // { dg-warning "attributes" } |