From: Casey Carter Date: Tue, 2 Aug 2022 19:03:25 +0000 (-0700) Subject: [libcxx][test] Test code should inspect `TEST_STD_VER`, not `_LIBCPP_STD_VER`. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1a30dc933b928a7a8277d5b5f7bd25670e68884;p=platform%2Fupstream%2Fllvm.git [libcxx][test] Test code should inspect `TEST_STD_VER`, not `_LIBCPP_STD_VER`. --- diff --git a/libcxx/test/support/test_iterators.h b/libcxx/test/support/test_iterators.h index b98c35b..f7eee4c 100644 --- a/libcxx/test/support/test_iterators.h +++ b/libcxx/test/support/test_iterators.h @@ -53,7 +53,7 @@ public: template void operator,(T const &) = delete; }; -#if _LIBCPP_STD_VER > 17 +#if TEST_STD_VER > 17 static_assert(std::output_iterator, int>); #endif @@ -94,7 +94,7 @@ public: template void operator,(T const &) = delete; }; -#if _LIBCPP_STD_VER > 17 +#if TEST_STD_VER > 17 static_assert(std::input_iterator>); #endif diff --git a/libcxx/test/support/test_range.h b/libcxx/test/support/test_range.h index 93fe955..c1cfb9e 100644 --- a/libcxx/test/support/test_range.h +++ b/libcxx/test/support/test_range.h @@ -13,7 +13,7 @@ #include "test_iterators.h" -#if _LIBCPP_STD_VER < 17 +#if TEST_STD_VER < 17 #error "test/support/test_range.h" can only be included in builds supporting ranges #endif