summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-20 20:24:09 +0000
committerChris Lattner <sabre@nondot.org>2003-08-20 20:24:09 +0000
commitf796d8090e7672d1b150af0a6e65dcc39be89ae2 (patch)
treeb84e557495c6bb9a822a2827343a73df780bcf53 /test
parentf9039d75feb3bd82444bc64c943c2dc521f2e286 (diff)
downloadllvm-f796d8090e7672d1b150af0a6e65dcc39be89ae2.tar.gz
llvm-f796d8090e7672d1b150af0a6e65dcc39be89ae2.tar.bz2
llvm-f796d8090e7672d1b150af0a6e65dcc39be89ae2.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/C++Frontend/2003-08-20-ExceptionFail.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-08-20-ExceptionFail.cpp b/test/C++Frontend/2003-08-20-ExceptionFail.cpp
new file mode 100644
index 0000000000..dfad1bff8e
--- /dev/null
+++ b/test/C++Frontend/2003-08-20-ExceptionFail.cpp
@@ -0,0 +1,13 @@
+void foo();
+
+void bar() {
+ struct local {
+ ~local() { foo(); }
+ } local_obj;
+
+ try {
+ foo();
+ } catch(...) {
+ }
+}
+