1 // { dg-do run } 2 extern "C" void exit (int); 3 extern "C" void abort (void); 4 struct A { int i; }; 5 int main () 6 { 7 try { throw &A::i; } 8 catch (int A::*p) 9 { 10 if (p == &A::i) 11 exit (0); 12 else 13 abort (); 14 } 15 abort (); 16 } 17