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 | 1b93f1ba9f77ab11d3fd8cefcb7ef11afb605a2c (patch) | |
tree | df180f4404d1693c488fe454e04bb9c4e45a0e4c /clang/test/CodeGenCXX/exceptions.cpp | |
parent | 14a07365cb78889ca417494e155aeeb00770214b (diff) | |
download | bcm5719-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.cpp | 12 |
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 (...) { + } + } +} |