Home | History | Annotate | Download | only in jni
      1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
      2 // { dg-options "-fexceptions" }
      3 
      4 int err = 1;
      5 
      6 struct A {
      7   ~A() {
      8     --err;
      9   }
     10 };
     11 
     12 struct B {
     13   A a;
     14   B() {
     15     throw 1;
     16   }
     17 };
     18 
     19 int main() {
     20   try {
     21     B b;
     22   } catch (...) {
     23     return err;
     24   }
     25   return 1;
     26 }
     27