1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
// PR c++/60642 struct __attribute((abi_tag("test"))) foo { void f(); virtual ~foo(); }; template<typename> struct __attribute((abi_tag("test"))) bar { void f(); virtual ~bar(); }; int main() { foo f; f.f(); bar<int> b; b.f(); } // { dg-final { scan-assembler "_ZTV3barB4testIiE" } }