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