summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/abi/dtor1.C
blob: 9ec44ae752016a601f1b5e883277720832290159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do compile { target i?86-*-* } }
// { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } }
// { dg-options "-fabi-version=0" }

struct A {
  virtual void a ();
};

struct B {
  virtual ~B ();
};

struct C : public A, public B {
  virtual void c ();
};

struct D : virtual public C {
  virtual void d ();
};

void D::d () {}

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