Debian Codegraph @

gcc/testsuite/g++.dg/abi/abi-tag6.C

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