// PR c++/84221 // { dg-additional-options -Wunused } template struct __attribute((unused)) A { }; template <> struct A { }; void f (void) { A a; // shouldn't warn A ac; // { dg-warning "unused" } }