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

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 24 13:13:47 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
+
----------------
H-G-Hristov wrote:

If tests are grouped by the C++ version, should this be moved down?

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


More information about the libcxx-commits mailing list