Can't test for noexcept on C++03; std::hash<nullptr_t> isn't available until C++17
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@298580 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -150,11 +150,16 @@
|
||||
#define TEST_NORETURN [[noreturn]]
|
||||
#endif
|
||||
|
||||
#if TEST_STD_VER < 11
|
||||
#define ASSERT_NOEXCEPT(...)
|
||||
#define ASSERT_NOT_NOEXCEPT(...)
|
||||
#else
|
||||
#define ASSERT_NOEXCEPT(...) \
|
||||
static_assert(noexcept(__VA_ARGS__), "Operation must be noexcept")
|
||||
|
||||
#define ASSERT_NOT_NOEXCEPT(...) \
|
||||
static_assert(!noexcept(__VA_ARGS__), "Operation must NOT be noexcept")
|
||||
#endif
|
||||
|
||||
/* Macros for testing libc++ specific behavior and extensions */
|
||||
#if defined(_LIBCPP_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user