summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/vbase1.C
blob: 39d8b81026b350f26f8a1344f2fabca4cd3008e1 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// { dg-do compile }

// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 5 Sept 2001 <nathan@codesourcery.com>

// Bug 3986. Another indirect primary base problem.

struct Consts
{
};

struct MathLib :
  virtual Consts
{
};

struct Parallel :
  virtual Consts
{
};

struct Particles :
  virtual MathLib,
  virtual Parallel
{
};

struct Ring :
  virtual Particles
{
};

struct Injection :
  virtual Particles,
  virtual Ring
{
};

struct LSpaceCharge :
  virtual Ring,
  virtual Injection
{
};

struct Bump :
  virtual Consts
{
};

struct Output :
  virtual Injection,
  virtual Bump
{
};

struct Plots :
  virtual LSpaceCharge,
  virtual Output
{
};