mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-28 22:42:52 +01:00
0443e837a0
llvm-svn: 10314
11 lines
178 B
C++
11 lines
178 B
C++
struct Evil {
|
|
void fun ();
|
|
};
|
|
int foo();
|
|
typedef void (Evil::*memfunptr) ();
|
|
static memfunptr jumpTable[] = { &Evil::fun };
|
|
|
|
void Evil::fun() {
|
|
(this->*jumpTable[foo()]) ();
|
|
}
|