2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / ptrmem1.C
blob299dc4a05cfb729a97d1810cd41e43c01a8c2f9f
1 // { dg-do run  }
2 extern "C" void exit (int);
3 extern "C" void abort (void);
4 struct A { int i; };
5 int main ()
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 ();