2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / eh3.C
blob4e61892828634df0eb4a6d83fcc63100c1b3f071
1 // { dg-do run  }
2 // { dg-options "-O" }
3 typedef struct { } e;
5 char *p;
7 void _Jv_throw ();
9 int barf (int len)
11   char a[len];
13   p = a;
14   _Jv_throw ();
15   return 0;
18 void _Jv_throw ()
20   e ex;
21   throw ex;
22 }  
24 int main ()
26   try  {
27     barf (2);
28   }
29   catch (...) {
30   }
32   return 0;