Debian Codegraph @

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

raw
1 // PR c++/77379
2 // { dg-options "-fabi-version=0 -Wabi=10" }
3
4 struct __attribute ((abi_tag ("bar"))) string { };
5
6 struct Mother
7 {
8 virtual ~Mother() {};
9 int bar;
10 };
11
12 struct Father
13 {
14 virtual string get_foo() = 0;
15 };
16
17 class Derived:
18 public Mother,
19 public Father
20 {
21 public:
22 string get_foo(); // { dg-warning "mangled name" }
23 };
24
25 struct Final:
26 public Derived
27 {
28 };
29
30 int main()
31 {
32 Final().get_foo();
33 }
34
35 // { dg-final { scan-assembler "_ZThn\[0-9]+_N7Derived7get_fooB3barEv" } }