Revert "Revert "Merge to upstream r304942.""

This reverts commit 38a0d5af7e.

Test: make checkbuild
Test: ./run_tests.py
Test: ./run_tests.py --bitness 64
This commit is contained in:
Dan Albert
2018-01-17 14:21:02 -08:00
parent 38a0d5af7e
commit c79549b70e
1102 changed files with 19092 additions and 14798 deletions

View File

@@ -8,6 +8,10 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: libcpp-no-exceptions
// This test fails due to a stack overflow
// XFAIL: LIBCXX-WINDOWS-FIXME
// <exception>
// class nested_exception;
@@ -43,7 +47,7 @@ class C
{
public:
virtual ~C() {}
C * operator&() const { assert(false); } // should not be called
C * operator&() const { assert(false); return nullptr; } // should not be called
};
class D : private std::nested_exception {};

View File

@@ -107,6 +107,16 @@ int main()
assert(i == 7);
}
}
{
try
{
std::throw_with_nested("String literal");
assert(false);
}
catch (const char *)
{
}
}
#if TEST_STD_VER > 11
{
try