diff options
Diffstat (limited to 'libcxx/test/support/test_allocator.h')
-rw-r--r-- | libcxx/test/support/test_allocator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/support/test_allocator.h b/libcxx/test/support/test_allocator.h index 8b00feb9377..e73a353842b 100644 --- a/libcxx/test/support/test_allocator.h +++ b/libcxx/test/support/test_allocator.h @@ -66,7 +66,7 @@ public: { assert(data_ >= 0); if (time_to_throw >= throw_after) { -#ifndef _LIBCPP_NO_EXCEPTIONS +#ifndef TEST_HAS_NO_EXCEPTIONS throw std::bad_alloc(); #else std::terminate(); @@ -130,7 +130,7 @@ public: { assert(data_ >= 0); if (time_to_throw >= throw_after) { -#ifndef _LIBCPP_NO_EXCEPTIONS +#ifndef TEST_HAS_NO_EXCEPTIONS throw std::bad_alloc(); #else std::terminate(); @@ -221,10 +221,10 @@ public: typedef std::true_type propagate_on_container_move_assignment; typedef std::true_type propagate_on_container_swap; -#ifdef _LIBCPP_HAS_NO_ADVANCED_SFINAE +#if TEST_STD_VER < 11 std::size_t max_size() const {return UINT_MAX / sizeof(T);} -#endif // _LIBCPP_HAS_NO_ADVANCED_SFINAE +#endif }; |