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

test/C++Frontend/2003-08-20-ExceptionFail.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2003-08-20-ExceptionFail.cpp b/test/C++Frontend/2003-08-20-ExceptionFail.cpp
new file mode 100644 (file)
index 0000000..dfad1bf
--- /dev/null
@@ -0,0 +1,13 @@
+void foo();
+
+void bar() {
+  struct local {
+    ~local() { foo(); }
+  } local_obj;
+
+  try {
+    foo();
+  } catch(...) {
+  }
+}
+