1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } } 2 // { dg-options "-fexceptions" } 3 4 #include <typeinfo> 5 6 class MyExceptionHandler { }; 7 main()8int main() { 9 try { 10 throw MyExceptionHandler(); 11 } catch(const MyExceptionHandler& eh) { 12 return 0; 13 } catch(...) { 14 return 1; 15 } 16 return 1; 17 } 18