☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CodeGenCXX
/
2003-12-08-ArrayOfPtrToMemberFunc.cpp
☽
☼
clang/test/CodeGenCXX/2003-12-08-ArrayOfPtrToMemberFunc.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang_cc1 -emit-llvm %s -o -
2
3
struct Evil {
4
void fun ();
5
};
6
int foo();
7
typedef void (Evil::*memfunptr) ();
8
static memfunptr jumpTable[] = { &Evil::fun };
9
10
void Evil::fun() {
11
(this->*jumpTable[foo()]) ();
12
}