Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / 2003-12-08-ArrayOfPtrToMemberFunc.cpp
blob38de271b61328d1667a88cc9924f855c9d15e41e
1 // RUN: %clang_cc1 -emit-llvm %s -o -
3 struct Evil {
4 void fun ();
5 };
6 int foo();
7 typedef void (Evil::*memfunptr) ();
8 static memfunptr jumpTable[] = { &Evil::fun };
10 void Evil::fun() {
11 (this->*jumpTable[foo()]) ();