forked from OSchip/llvm-project
parent
408916bc32
commit
b8d989e055
|
@ -0,0 +1,10 @@
|
|||
struct Evil {
|
||||
void fun ();
|
||||
};
|
||||
int foo();
|
||||
typedef void (Evil::*memfunptr) ();
|
||||
static memfunptr jumpTable[] = { &Evil::fun };
|
||||
|
||||
void Evil::fun() {
|
||||
(this->*jumpTable[foo()]) ();
|
||||
}
|
Loading…
Reference in New Issue