repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
abi
/
vbase8-10.C
blob
81896ed64e78cd12ac0cf2fefc0eb44e272dd7bb
1
// { dg-options -w }
2
// { dg-do run }
3
4
// Copyright (C) 2001 Free Software Foundation, Inc.
5
// Contributed by Nathan Sidwell 26 Jul 2001 <nathan@codesourcery.com>
6
7
// Origin stefan@space.twc.de
8
// Bug 3145 case 10. Horribly complicated class hierarchy
9
10
class C0
11
{};
12
class C1
13
: public C0
14
{};
15
class C2
16
: public C1
17
, virtual public C0
18
{};
19
class C3
20
: public C1
21
, public C2
22
, virtual public C0
23
{};
24
class C4
25
: virtual public C1
26
, virtual public C0
27
, virtual public C3
28
, public C2
29
{};
30
class C5
31
: public C3
32
, virtual public C0
33
, virtual public C2
34
{};
35
class C6
36
: public C1
37
, public C2
38
, virtual public C5
39
, virtual public C3
40
, virtual public C0
41
{};
42
class C7
43
: public C1
44
, virtual public C5
45
, virtual public C4
46
, virtual public C2
47
, virtual public C0
48
, virtual public C6
49
{};
50
class C8
51
: virtual public C4
52
, public C3
53
, public C0
54
, virtual public C7
55
, virtual public C6
56
{};
57
class C9
58
: virtual public C0
59
, public C4
60
, public C8
61
, public C1
62
, public C6
63
{};
64
main() {
65
C0 c0;
66
C1 c1;
67
C2 c2;
68
C3 c3;
69
C4 c4;
70
C5 c5;
71
C6 c6;
72
C7 c7;
73
C8 c8;
74
C9 c9;
75
}