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