aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/C++Frontend/2003-08-24-Cleanup.cpp.tr10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-08-24-Cleanup.cpp.tr b/test/C++Frontend/2003-08-24-Cleanup.cpp.tr
new file mode 100644
index 0000000000..690303545f
--- /dev/null
+++ b/test/C++Frontend/2003-08-24-Cleanup.cpp.tr
@@ -0,0 +1,10 @@
+// RUN: llvmg++ -xc++ 2003-08-24-Cleanup.cpp.tr -c -o - | dis | grep 'call void %llvm.unwind'
+
+struct S { ~S(); };
+
+int mightthrow();
+
+int test() {
+ S s;
+ mightthrow();
+}