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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p4511.C
blob
af9b386032660348896c9ae7afebc27822018c34
1
// { dg-do run }
2
// prms-id: 4511
3
4
int bad;
5
6
class A {
7
public:
8
virtual void dummy (){};
9
};
10
11
class B {
12
public:
13
virtual void f(void) = 0;
14
};
15
16
class C : public A, public B {
17
public:
18
void f(void) { bad=1; };
19
};
20
21
class D : public C {
22
public:
23
void f(void) { };
24
};
25
26
class E : public D { };
27
28
int main() {
29
E e;
30
e.f();
31
E * ep = &e;
32
ep->f();
33
return bad;
34
}