[libcxx-commits] [libcxx] 5a2dbe4 - [libc++][test] Verify std::ranges::rbegin, crbegin, rend, crend are CPOs

Joe Loser via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 25 07:50:55 PDT 2022


Author: Joe Loser
Date: 2022-05-25T08:48:22-06:00
New Revision: 5a2dbe49bedc15769319a2754a9c109bf3f5c678

URL: https://github.com/llvm/llvm-project/commit/5a2dbe49bedc15769319a2754a9c109bf3f5c678
DIFF: https://github.com/llvm/llvm-project/commit/5a2dbe49bedc15769319a2754a9c109bf3f5c678.diff

LOG: [libc++][test] Verify std::ranges::rbegin, crbegin, rend, crend are CPOs

Uncomment the tests to ensure `std::ranges::rbegin` and friends are indeed
customization points objects.

Differential Revision: https://reviews.llvm.org/D126325

Added: 
    

Modified: 
    libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp b/libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp
index 45a3eb1dac3f1..225412fda2152 100644
--- a/libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp
+++ b/libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp
@@ -66,12 +66,12 @@ static_assert(test(std::ranges::end, a));
 static_assert(test(std::ranges::cbegin, a));
 static_assert(test(std::ranges::cdata, a));
 static_assert(test(std::ranges::cend, a));
-//static_assert(test(std::ranges::crbegin, a));
-//static_assert(test(std::ranges::crend, a));
+static_assert(test(std::ranges::crbegin, a));
+static_assert(test(std::ranges::crend, a));
 static_assert(test(std::ranges::data, a));
 static_assert(test(std::ranges::empty, a));
-//static_assert(test(std::ranges::rbegin, a));
-//static_assert(test(std::ranges::rend, a));
+static_assert(test(std::ranges::rbegin, a));
+static_assert(test(std::ranges::rend, a));
 static_assert(test(std::ranges::size, a));
 static_assert(test(std::ranges::ssize, a));
 


        


More information about the libcxx-commits mailing list