mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 16:06:07 +00:00
[libc++][test] Replace _LIBCPP_STD_VER
with TEST_STD_VER
Differential Revision: https://reviews.llvm.org/D130979
This commit is contained in:
parent
75f6a10d52
commit
8a78b72289
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user