diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2017-04-13 16:57:42 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2017-04-13 16:57:42 +0000 |
commit | 5948e39297f73a90202a397c317b5c0e63a7fcde (patch) | |
tree | d12687794dbce0d1ae8ef2eaeb1b2a0fb9f74404 /libcxx/test/std/language.support/support.exception | |
parent | 72f8257cba8a40490723bc39c0446a1eb9229cba (diff) | |
download | bcm5719-llvm-5948e39297f73a90202a397c317b5c0e63a7fcde.tar.gz bcm5719-llvm-5948e39297f73a90202a397c317b5c0e63a7fcde.zip |
Implement LWG#2855 - made easy by previous refactoring
llvm-svn: 300218
Diffstat (limited to 'libcxx/test/std/language.support/support.exception')
-rw-r--r-- | libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp b/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp index a86d8bcbe20..26be4db38fb 100644 --- a/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp @@ -107,6 +107,16 @@ int main() assert(i == 7); } } + { + try + { + std::throw_with_nested("String literal"); + assert(false); + } + catch (const char * s) + { + } + } #if TEST_STD_VER > 11 { try |