OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
36309763fde851af8aa45b1d9953499cb3632698
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p10148.C
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
main() {
30
TCRCB a;
31
a.eat();
32
return fail;
33
}