blob: b1677bc203d5d8e9b082832027d4d00aaad54a13 [file] [log] [blame]
struct Evil {
void fun ();
};
int foo();
typedef void (Evil::*memfunptr) ();
static memfunptr jumpTable[] = { &Evil::fun };
void Evil::fun() {
(this->*jumpTable[foo()]) ();
}