aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-24 20:23:21 +0000
committerChris Lattner <sabre@nondot.org>2003-08-24 20:23:21 +0000
commitcf0e11e1cf403c980f5bedf7089a1e9ca0f9f290 (patch)
treee0765d0197ca6ec116715359c2373b319cc8cbb5 /test
parentf6c3fc3a2d508ee7ba8dc1a08f70abe71b2a22ab (diff)
downloadexternal_llvm-cf0e11e1cf403c980f5bedf7089a1e9ca0f9f290.zip
external_llvm-cf0e11e1cf403c980f5bedf7089a1e9ca0f9f290.tar.gz
external_llvm-cf0e11e1cf403c980f5bedf7089a1e9ca0f9f290.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-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 0000000..6903035
--- /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();
+}