blob: 5e310a4a42a739df490053975e4b40aa5363246f (
plain)
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
26
27
28
29
30
31
32
33
34
35
|
// PR c++/77379
// { dg-options "-fabi-version=0 -Wabi=10" }
struct __attribute ((abi_tag ("bar"))) string { };
struct Mother
{
virtual ~Mother() {};
int bar;
};
struct Father
{
virtual string get_foo() = 0;
};
class Derived:
public Mother,
public Father
{
public:
string get_foo(); // { dg-warning "mangled name" }
};
struct Final:
public Derived
{
};
int main()
{
Final().get_foo();
}
// { dg-final { scan-assembler "_ZThn16_N7Derived7get_fooB3barEv" } }
|