summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.abi/vbase8-9.C
blob: bc922e85cf1c4f3b0fb145e8586aec4174a3f283 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// { dg-do run  }
// { dg-options "-ansi -pedantic-errors -w" }

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

// Bug 3145, generated by script provided by stefan@space.twc.de
// This is case number 9

class C0
{};
class C1
 :  public C0
{};
class C2
 :  public C1
 ,  public C0
{};
class C3
 :  virtual public C0
 ,  public C2
 ,  virtual public C1
{};
class C4
 :  virtual public C2
 ,  public C0
 ,  virtual public C3
 ,  public C1
{};
class C5
 :  public C0
 ,  public C1
 ,  public C4
 ,  virtual public C2
 ,  public C3
{};
class C6
 :  public C1
 ,  public C3
 ,  virtual public C5
 ,  virtual public C2
 ,  public C0
 ,  virtual public C4
{};
class C7
 :  virtual public C1
 ,  virtual public C0
 ,  public C6
 ,  virtual public C2
 ,  public C5
{};
class C8
 :  virtual public C1
 ,  virtual public C4
 ,  public C0
 ,  virtual public C7
 ,  virtual public C2
{};
class C9
 :  virtual public C1
 ,  virtual public C6
 ,  public C8
 ,  virtual public C2
 ,  public C0
{};
int main() {
  C0 c0;
  C1 c1;
  C2 c2;
  C3 c3;
  C4 c4;
  C5 c5;
  C6 c6;
  C7 c7;
  C8 c8;
  C9 c9;
}