URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p10148.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// { dg-options "" }
// prms-id: 10148
int fail = 1;
void ok() { fail = 0; }
class TC {
int s_;
};
class TIRD {
public:
void (*itc)();
TIRD() { itc = ok; }
};
class TCCB : public TC, public TIRD {
};
class TCRCB : public TCCB {
public:
virtual void eat ();
};
void TCRCB::eat () {
void *vp = (void *)((TIRD*)this)->itc;
this->itc();
}
int main() {
TCRCB a;
a.eat();
return fail;
}
Go to most recent revision | Compare with Previous | Blame | View Log