Home | History | Annotate | Download | only in jni
      1 // { dg-do run  }
      2 // { dg-options "-O" }
      3 typedef struct { } e;
      4 
      5 char *p;
      6 
      7 void _Jv_throw ();
      8 
      9 int barf (int len)
     10 {
     11   char a[len];
     12 
     13   p = a;
     14   _Jv_throw ();
     15   return 0;
     16 }
     17 
     18 void _Jv_throw ()
     19 {
     20   e ex;
     21   throw ex;
     22 }
     23 
     24 int main ()
     25 {
     26   try  {
     27     barf (2);
     28   }
     29   catch (...) {
     30   }
     31 
     32   return 0;
     33 }
     34