[libcxx-commits] [libcxx] [libc++] Add missing CPO tests for range adaptors (PR #149557)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 25 04:27:55 PDT 2025


================
@@ -81,25 +85,50 @@ static_assert(test(std::ranges::ssize, a));
 // views::empty<T> is not a CPO
 static_assert(test(std::views::iota, 1));
 static_assert(test(std::views::iota, 1, 10));
-//static_assert(test(std::views::istream<int>, 1);
+#ifndef TEST_HAS_NO_LOCALIZATION
+static_assert(test(std::views::istream<int>, stream));
+#endif
 static_assert(test(std::views::single, 4));
 
+#if TEST_STD_VER >= 23
+static_assert(test(std::views::repeat, 1));
+#endif
+
----------------
frederick-vs-ja wrote:

I think tests are intended to be grouped by sections ([range.factories], [range.adaptors]) first and then the standard modes. But this is upt to @ldionne.

https://github.com/llvm/llvm-project/pull/149557


More information about the libcxx-commits mailing list