Home | History | Annotate | Download | only in jni
      1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
      2 // { dg-options "-fexceptions" }
      3 
      4 class foo {
      5 public:
      6   class error {};
      7 
      8   void cause_error(void) { throw error(); }
      9 };
     10 
     11 int main(void)
     12 {
     13   foo f;
     14   try {
     15     f.cause_error();
     16   }
     17   catch (foo::error&) {
     18     return 0;
     19   }
     20   return 1;
     21 }
     22