// PR c++/60642 struct __attribute((abi_tag("test"))) foo { void f(); virtual ~foo(); }; template struct __attribute((abi_tag("test"))) bar { void f(); virtual ~bar(); }; int main() { foo f; f.f(); bar b; b.f(); } // { dg-final { scan-assembler "_ZTV3barB4testIiE" } }