1// { dg-do run { xfail sparc64-*-elf arm-*-pe } } 2// { dg-options "-fexceptions" } 3 4struct none { int i[50]; }; 5 6class my_ex { } a; 7 8none throw_it() { 9 throw 1; 10} 11 12int main() { 13 try { 14 none n = throw_it(); 15 } catch (int ex) { 16 return 0; 17 } 18} 19