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
Chris Lattner 0443e837a0 New testcase for PR165
llvm-svn: 10314
2003-12-08 06:18:37 +00:00

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()]) ();
}