URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [eh2.C] - Rev 313
Go to most recent revision | Compare with Previous | Blame | View Log
// PR 6764
// { dg-do run }
// { dg-options "-O -fomit-frame-pointer" }
extern "C" void abort ();
class test
{
public:
test * const me;
test () : me(this) { }
~test () { if (me != this) abort (); }
};
void x1 ()
{
test w1;
throw 1;
}
void x2 ()
{
test w2;
x1 ();
}
int main (void)
{
try {
x2 ();
} catch (...) {
}
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log