[libcxx-commits] [PATCH] D130979: [libc++][test] Replace `_LIBCPP_STD_VER` with `TEST_STD_VER`

S. B. Tam via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 2 22:45:07 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG8a78b72289c5: [libc++][test] Replace `_LIBCPP_STD_VER` with `TEST_STD_VER` (authored by cpplearner).

Changed prior to commit:
  https://reviews.llvm.org/D130979?vs=449247&id=449545#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130979/new/

https://reviews.llvm.org/D130979

Files:
  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: libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_convert_move.pass.cpp
===================================================================
--- libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_convert_move.pass.cpp
+++ libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_convert_move.pass.cpp
@@ -51,7 +51,7 @@
   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 @@
         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
 
Index: 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_copy.pass.cpp
+++ libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_convert_copy.pass.cpp
@@ -36,7 +36,7 @@
   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 @@
         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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130979.449545.patch
Type: text/x-patch
Size: 1651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220803/9b4699fe/attachment.bin>


More information about the libcxx-commits mailing list