repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
override1.C
blob
c7f3a4c9c0abdaca903d7ee7182f9e90dcb24497
1
// Build don't link:
2
// Origin: Frank Pilhofer <fp@fpx.de>
3
4
struct A {
5
virtual void f ();
6
};
7
8
struct B : virtual public A {
9
void f ();
10
};
11
12
struct C : virtual public A {
13
void f ();
14
};
15
16
struct D : virtual public B, virtual public C {
17
void f ();
18
};
19
20
struct Di : virtual public B, virtual public C, virtual public D {};