From 0b883f2cc2eab3b5bb9f92cda4fb98820cb5e895 Mon Sep 17 00:00:00 2001 From: theraven Date: Sun, 13 Jan 2013 11:23:36 +0000 Subject: [PATCH] Add missing test. --- Test/CXXException.cc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Test/CXXException.cc 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(); +}