xref: /aosp_15_r20/external/clang/test/CodeGenCXX/2003-12-08-ArrayOfPtrToMemberFunc.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
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 
fun()10 void Evil::fun() {
11  (this->*jumpTable[foo()]) ();
12 }
13