aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/abi-tag23a.C
blob: 10645bf74cfa8f5abbd40bddd394e6c9914accb3 (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=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();
};

struct Final:
    public Derived
{
};

int main()
{
  Final().get_foo();
}

// { dg-final { scan-assembler "_ZThn\[0-9]+_N7Derived7get_fooEv" } }