1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/Regression/C++Frontend/2003-12-08-ArrayOfPtrToMemberFunc.cpp

11 lines
178 B
C++
Raw Normal View History

2003-12-08 07:18:37 +01:00
struct Evil {
void fun ();
};
int foo();
typedef void (Evil::*memfunptr) ();
static memfunptr jumpTable[] = { &Evil::fun };
void Evil::fun() {
(this->*jumpTable[foo()]) ();
}