Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / FrontendC++ / ptr-to-method-devirt.cpp
bloba5ca5c76559ad78e392944c9b3e6e01abbd8a59f
1 // PR1602
2 // RUN: %llvmgxx -S %s -o - -O3 | not grep ptrtoint
3 // RUN: %llvmgxx -S %s -o - -O3 | grep getelementptr | count 1
6 struct S { virtual void f(); };
8 typedef void (S::*P)(void);
10 const P p = &S::f;
12 void g(S s) {
13 (s.*p)();