summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.abi/vbase7.C
blob: a9d5e50a4262d2490993d09ec676fc0eb6e554fb (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
36
37
38
39
40
41
// { dg-do run  }
// Build don't run
// 
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 12 Jun 2001 <nathan@codesourcery.com>

// 3132. A virtual thunk was missing.

struct A
{
  int x;
  virtual ~A() {}
};

struct B
{
  virtual ~B() { }
};


struct C
{
  virtual ~C () {}
};


struct D : public virtual A {};
struct E : virtual public B, virtual public D {};
struct F : virtual public C, virtual public E {};
struct G : public virtual E {};

struct H : public virtual F, public virtual G
{
  virtual ~H ();
};
H::~H() {}

int main ()
{
  return 0;
}