From cf0e11e1cf403c980f5bedf7089a1e9ca0f9f290 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 24 Aug 2003 20:23:21 +0000 Subject: [PATCH] New testcase 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/C++Frontend/2003-08-24-Cleanup.cpp.tr 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 00000000000..690303545f5 --- /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(); +}