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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
virt4.C
blob
2d8b042632ad30b33a472b087d2c82cf79408d2f
1
// { dg-do run }
2
// { dg-options "" }
3
4
void Foo () {}
5
6
class B {
7
public:
8
virtual void foo() = 0;
9
};
10
11
class D: virtual public B {
12
public:
13
void foo() { Foo(); }
14
};
15
16
class D1: public D {};
17
18
class D2: public D {};
19
20
class D1_2: public D1, public D2 {
21
public:
22
void foo() { D1::foo(); D2::foo(); }
23
};
24
25
main() {
26
D1_2 h;
27
h.foo();
28
}