Implement LWG#2855 - made easy by previous refactoring

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@300218 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2017-04-13 16:57:42 +00:00
parent b975b451af
commit 6403571b40
3 changed files with 14 additions and 4 deletions

View File

@@ -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