1 // PR c++/84221 2 // { dg-additional-options -Wunused } 3 4 template <class T> struct __attribute((unused)) A { }; 5 template <> struct A<char> { }; 6 7 void f (void) 8 { 9 A<int> a; // shouldn't warn 10 A<char> ac; // { dg-warning "unused" } 11 } 12