Differential Revision: https://reviews.llvm.org/D26458
llvm-svn: 286813
//
//===----------------------------------------------------------------------===//
-// XFAIL: libcpp-no-exceptions
// <exception>
// class nested_exception;
#include <exception>
#include <cassert>
+#include "test_macros.h"
+
class A
{
int data_;
e = e0;
assert(e.nested_ptr() == nullptr);
}
+#ifndef TEST_HAS_NO_EXCEPTIONS
{
try
{
}
}
}
+#endif
}
//
//===----------------------------------------------------------------------===//
-// XFAIL: libcpp-no-exceptions
// <exception>
// class nested_exception;
#include <exception>
#include <cassert>
+#include "test_macros.h"
+
class A
{
int data_;
std::nested_exception e = e0;
assert(e.nested_ptr() == nullptr);
}
+#ifndef TEST_HAS_NO_EXCEPTIONS
{
try
{
}
}
}
+#endif
}
//
//===----------------------------------------------------------------------===//
-// XFAIL: libcpp-no-exceptions
// <exception>
// class nested_exception;
#include <exception>
#include <cassert>
+#include "test_macros.h"
+
class A
{
int data_;
std::nested_exception e;
assert(e.nested_ptr() == nullptr);
}
+#ifndef TEST_HAS_NO_EXCEPTIONS
{
try
{
}
}
}
+#endif
}