diff --git a/Test/CXXException.cc b/Test/CXXException.cc new file mode 100644 index 0000000..96e9f11 --- /dev/null +++ b/Test/CXXException.cc @@ -0,0 +1,23 @@ + +extern "C" void throw_int() +{ + throw 12; +} + +extern "C" void throw_id(); +extern "C" int id_catchall; + + +extern "C" int catchall() +{ + try + { + throw_id(); + } + catch(...) + { + id_catchall = 1; + throw; + } + __builtin_trap(); +}