summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/vthunk3.C
blob: 59fbbdc4be30ea507397ef6db488ae891d0f8752 (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
// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-require-effective-target ilp32 }
// { dg-options "-fabi-version=0" }

struct A {
  virtual void a ();
};

struct B : virtual public A {
  virtual void b ();
  virtual void a ();
};

struct C {
  virtual void c ();
};

struct D : public C, public B {
};

struct E : virtual public D {
  void b ();
};

void E::b () {}

// { dg-final { scan-assembler _ZTvn4_n20_N1E1bEv } }