summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/exceptions.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-02-25 04:19:13 +0000
committerJohn McCall <rjmccall@apple.com>2011-02-25 04:19:13 +0000
commit1b93f1ba9f77ab11d3fd8cefcb7ef11afb605a2c (patch)
treedf180f4404d1693c488fe454e04bb9c4e45a0e4c /clang/test/CodeGenCXX/exceptions.cpp
parent14a07365cb78889ca417494e155aeeb00770214b (diff)
downloadbcm5719-llvm-1b93f1ba9f77ab11d3fd8cefcb7ef11afb605a2c.tar.gz
bcm5719-llvm-1b93f1ba9f77ab11d3fd8cefcb7ef11afb605a2c.zip
Tame an assert; the scope depth of a jump destination does not
necessarily enclose the innermost normal cleanup depth, because the top of the jump scope stack might be an EH cleanup or EH scope. Fixes PR9303. llvm-svn: 126472
Diffstat (limited to 'clang/test/CodeGenCXX/exceptions.cpp')
-rw-r--r--clang/test/CodeGenCXX/exceptions.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/exceptions.cpp b/clang/test/CodeGenCXX/exceptions.cpp
index 84d55c8f190..80818189f48 100644
--- a/clang/test/CodeGenCXX/exceptions.cpp
+++ b/clang/test/CodeGenCXX/exceptions.cpp
@@ -293,3 +293,15 @@ namespace test5 {
}
}
}
+
+// PR9303: invalid assert on this
+namespace test6 {
+ bool cond();
+ void test() {
+ try {
+ lbl:
+ if (cond()) goto lbl;
+ } catch (...) {
+ }
+ }
+}
OpenPOWER on IntegriCloud