Remove explicit uses of -emit-llvm, the test infrastructure adds it
[oota-llvm.git] / test / FrontendC++ / ptr-to-method-devirt.cpp
1 // PR1602
2 // RUN: %llvmgxx -S %s -o - -O3 | not grep ptrtoint
3 // RUN: %llvmgxx -S %s -o - -O3 | grep getelementptr | count 1
4
5
6 struct S { virtual void f(); };
7
8 typedef void (S::*P)(void);
9
10 const P p = &S::f; 
11
12 void g(S s) {
13    (s.*p)();
14  }