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
Update ChangeLogs and version numbers for 2.95.3 release
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p10148.C
blob
074724a56466b40da2569b017422807b6f913c3a
1
// prms-id: 10148
2
3
int fail = 1;
4
void ok() { fail = 0; }
5
6
class TC {
7
int s_;
8
};
9
10
class TIRD {
11
public:
12
void (*itc)();
13
TIRD() { itc = ok; }
14
};
15
16
class TCCB : public TC, public TIRD {
17
};
18
19
class TCRCB : public TCCB {
20
public:
21
virtual void eat ();
22
};
23
24
void TCRCB::eat () {
25
void *vp = (TIRD*)this->itc;
26
this->itc();
27
}
28
29
int main() {
30
TCRCB a;
31
a.eat();
32
return fail;
33
}