URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.eh/] [ptrmem1.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do run }
extern "C" void exit (int);
extern "C" void abort (void);
struct A { int i; };
int main ()
{
try { throw &A::i; }
catch (int A::*p)
{
if (p == &A::i)
exit (0);
else
abort ();
}
abort ();
}