1 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
4 virtual void Method() = 0;
8 virtual void Method() { }
11 typedef void (A::*fn_type_a)(void);
12 typedef void (B::*fn_type_b)(void);
14 int main(int argc, char **argv)
16 fn_type_a f = reinterpret_cast<fn_type_a>(&B::Method);
17 fn_type_b g = reinterpret_cast<fn_type_b>(f);