[libc++][test] Replace _LIBCPP_STD_VER with TEST_STD_VER

Differential Revision: https://reviews.llvm.org/D130979
This commit is contained in:
cpplearner 2022-08-02 18:38:17 +08:00
parent 75f6a10d52
commit 8a78b72289
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ struct Implicit {
Implicit(int x) : value(x) {}
};
#if _LIBCPP_STD_VER > 17
#if TEST_STD_VER > 17
constexpr bool alloc_copy_constructor_is_constexpr() {
const std::tuple<int> t1 = 1;
std::tuple<int> t2 = {std::allocator_arg, test_allocator<int>{}, t1};
@ -106,7 +106,7 @@ int main(int, char**)
std::tuple<long long> t0(derived, A1<int>(), from);
}
#if _LIBCPP_STD_VER > 17
#if TEST_STD_VER > 17
static_assert(alloc_copy_constructor_is_constexpr());
#endif
return 0;

View File

@ -51,7 +51,7 @@ struct Implicit {
Implicit(int x) : value(x) {}
};
#if _LIBCPP_STD_VER > 17
#if TEST_STD_VER > 17
constexpr bool alloc_move_constructor_is_constexpr() {
std::tuple<int> t1 = 1;
std::tuple<int> t2 = {std::allocator_arg, test_allocator<int>{}, std::move(t1)};
@ -119,7 +119,7 @@ int main(int, char**)
std::tuple<long long> t0(derived, A1<int>(), std::move(from));
}
#if _LIBCPP_STD_VER > 17
#if TEST_STD_VER > 17
static_assert(alloc_move_constructor_is_constexpr());
#endif