projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
change dag isel emitter to only call 'IsProfitableToFold' on nodes
[oota-llvm.git]
/
test
/
FrontendC++
/
2003-12-08-ArrayOfPtrToMemberFunc.cpp
1
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
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
}