summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/abi/vthunk2.C
blob: 9b6f14c50e2c83973f8789d5941fc067ed750f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do compile { target i?86-*-* x86_64-*-*} }
// { dg-require-effective-target ilp32 }

struct c0 {
  virtual void f ();
};

struct c1 : virtual public c0 {
};

struct c2 : virtual public c0, public c1 {
  virtual void f ();
};

void c2::f () {}

// { dg-final { scan-assembler _ZTv0_n12_N2c21fEv } }
OpenPOWER on IntegriCloud