AVR: Support new built-in function __builtin_avr_mask1.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / eh2.C
blob7cb49f00cee71719550d0cfae2633a426bf6b05f
1 // PR 6764
2 // { dg-do run }
3 // { dg-options "-O -fomit-frame-pointer" }
5 extern "C" void abort ();
7 class test
9  public:
10   test * const me;
11   test () : me(this) { }
12   ~test () { if (me != this) abort (); }
15 void x1 ()
17   test w1;
18   throw 1;
21 void x2 ()
23   test w2;
24   x1 ();
27 int main (void)
29   try {
30     x2 ();
31   } catch (...) {
32   }
33   return 0;