summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.abi/vbase5.C
blob: 4e1b4efbdbd63c2a25e4b7383e13398ea9eafa54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// 
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 12 Jun 2001 <nathan@codesourcery.com>

// 3130. A virtual base can have canonical and non-canonical instances
// of its primary. The canonical one should be first in dfs order.

struct A
{
  virtual ~A ();
};

struct B
{
  virtual ~B ();
};


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