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