Files
clang-p2996/llvm/test/Regression/C++Frontend/2003-12-08-ArrayOfPtrToMemberFunc.cpp
Chris Lattner b8d989e055 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()]) ();
}