Initialize HasMetadata to zero.
[llvm/avr.git] / test / FrontendC++ / 2004-03-08-ReinterpretCastCopy.cpp
blob35880ab36302a4159305201b9c3fe1d196b81fd4
1 // RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
3 struct A {
4 virtual void Method() = 0;
5 };
7 struct B : public A {
8 virtual void Method() { }
9 };
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);
18 B b;
19 (b.*g)();
20 return 0;