blob: d5122340225ca96055fed79e6662914673e898e0 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
3struct Evil {
4 void fun ();
5};
6int foo();
7typedef void (Evil::*memfunptr) ();
8static memfunptr jumpTable[] = { &Evil::fun };
9
10void Evil::fun() {
11 (this->*jumpTable[foo()]) ();
12}