diff options
author | John McCall <rjmccall@apple.com> | 2011-02-25 04:19:13 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-25 04:19:13 +0000 |
commit | 27f8d703e65095ca9c8c5d08a5a835b5510a730d (patch) | |
tree | 328483b14232323278090359a335d987034b5238 /test/CodeGenCXX/exceptions.cpp | |
parent | c22b5fff39a7520207f165fb16a27a34b944bd9c (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/exceptions.cpp')
-rw-r--r-- | test/CodeGenCXX/exceptions.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGenCXX/exceptions.cpp b/test/CodeGenCXX/exceptions.cpp index 84d55c8f19..80818189f4 100644 --- a/test/CodeGenCXX/exceptions.cpp +++ b/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 (...) { + } + } +} |