1// prms-id: 9206 2 3class X { 4public: 5 void xtest() { } 6}; 7 8class Y { }; 9 10typedef void (X::*Xptr)(); 11typedef void (Y::*Yptr)(); 12 13int main() { 14 X xx; 15 16 Xptr xp = &X::xtest; 17 Yptr yp = reinterpret_cast<Yptr>(xp); 18 xp = reinterpret_cast<Xptr>(yp); 19 20 (xx.*xp)(); 21} 22