[libcxx-commits] [libcxx] [libc++][ranges] Enable CPO compile tests (PR #207123)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 1 22:59:11 PDT 2026
https://github.com/H-G-Hristov created https://github.com/llvm/llvm-project/pull/207123
None
>From 9c0786b1bf196f332c01675bbb89349169c9b666 Mon Sep 17 00:00:00 2001
From: Hristo Hristov <hghristov.rmm at gmail.com>
Date: Thu, 2 Jul 2026 08:57:55 +0300
Subject: [PATCH] [libc++][ranges] Enable CPO compile tests
`adjacent_transform_view` and `stride_view` were implemented but the test cases were omitted.
---
.../customization.point.object/cpo.compile.pass.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 d83ca7f2eabfc..71a0b6ebb804c 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
@@ -120,7 +120,7 @@ static_assert(test(std::views::transform, a, [](int x) { return x + 1; }));
static_assert(test(std::views::values, pairs));
#if TEST_STD_VER >= 23
-// static_assert(test(std::views::adjacent_transform<2>, [](int x, int y) { return x + y; }, a));
+static_assert(test(std::views::adjacent_transform<2>, a, [](int x, int y) { return x + y; }));
static_assert(test(std::views::adjacent<2>, a));
// static_assert(test(std::views::as_const, a));
static_assert(test(std::views::as_rvalue, a));
@@ -130,7 +130,7 @@ static_assert(test(std::views::chunk_by, a, [](int x, int y) { return x < y; }))
static_assert(test(std::views::enumerate, a));
static_assert(test(std::views::join_with, 1));
static_assert(test(std::views::pairwise, a));
-// static_assert(test(std::views::stride, a, 1));
+static_assert(test(std::views::stride, a, 1));
static_assert(test(std::views::zip_transform, [](int x, int y) { return x + y; }, a, a));
static_assert(test(std::views::zip, a, a));
#endif
More information about the libcxx-commits
mailing list