[libc++][test] Replace `_LIBCPP_STD_VER` with `TEST_STD_VER`
authorcpplearner <cpplearner@outlook.com>
Tue, 2 Aug 2022 10:38:17 +0000 (18:38 +0800)
committercpplearner <cpplearner@outlook.com>
Wed, 3 Aug 2022 05:54:04 +0000 (13:54 +0800)
Differential Revision: https://reviews.llvm.org/D130979

libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_convert_copy.pass.cpp
libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_convert_move.pass.cpp

index 4ed4134..40b5cda 100644 (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;
index 1423c61..6d22363 100644 (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