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:
@@ -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 {};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user