summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/eh.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-26 22:44:58 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-26 22:44:58 +0000
commit7cd4b060f1e59f6d29126383ceee614e4772f859 (patch)
tree2b5546ccec719e5a5c1aa3b9b382d59ff8304aab /test/CodeGenCXX/eh.cpp
parentdee832c8958ca100c671881b6541fbb857a33592 (diff)
Test for the presence of EH branch-throughs instead of normal branch-throughs.
I knew this code duplication would bite me. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/eh.cpp')
-rw-r--r--test/CodeGenCXX/eh.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGenCXX/eh.cpp b/test/CodeGenCXX/eh.cpp
index e22063a4c1..3a2a38632f 100644
--- a/test/CodeGenCXX/eh.cpp
+++ b/test/CodeGenCXX/eh.cpp
@@ -361,3 +361,21 @@ namespace test13 {
} catch (int x) {}
}
}
+
+// rdar://problem/8231514
+namespace test14 {
+ struct A { ~A(); };
+ struct B { ~B(); };
+
+ B b();
+ void opaque();
+
+ void foo() {
+ A a;
+ try {
+ B str = b();
+ opaque();
+ } catch (int x) {
+ }
+ }
+}