1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } } 2 // { dg-options "-fexceptions" } 3 4 class MyError { }; 5 6 int main (int argc, char **argv) { 7 try { 8 throw MyError(); 9 } 10 catch (MyError x) { 11 } 12 13 return 0; 14 } 15