New testcase
authorChris Lattner <sabre@nondot.org>
Sun, 24 Aug 2003 20:23:21 +0000 (20:23 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Aug 2003 20:23:21 +0000 (20:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8138 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2003-08-24-Cleanup.cpp.tr [new file with mode: 0644]

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 (file)
index 0000000..6903035
--- /dev/null
@@ -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();
+}