[libcxx-commits] [libcxx] [libc++][test] Increase the constexpr step limit for ranges.ends_with.pass.cpp (PR #238491)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Nov 3 10:46:24 PST 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Louis Dionne (ldionne)
<details>
<summary>Changes</summary>
The test evaluates all the iterator and sentinel combinations in a single constant evaluation. On some versions of Clang, this blows up the constexpr step limit. This is what we did in the contains_subrange test as well.
---
Full diff: https://github.com/llvm/llvm-project/pull/238491.diff
1 Files Affected:
- (modified) libcxx/test/std/algorithms/alg.nonmodifying/alg.ends_with/ranges.ends_with.pass.cpp (+1)
``````````diff
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.ends_with/ranges.ends_with.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.ends_with/ranges.ends_with.pass.cpp
index 9a7a5f551a784f..1f7c2a5eb1a73e 100644
--- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.ends_with/ranges.ends_with.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.ends_with/ranges.ends_with.pass.cpp
@@ -9,6 +9,7 @@
// <algorithm>
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
+// ADDITIONAL_COMPILE_FLAGS(has-fconstexpr-steps): -fconstexpr-steps=2000000
// template<input_iterator I1, sentinel_for<I1> S1, input_iterator I2, sentinel_for<I2> S2,
// class Pred = ranges::equal_to, class Proj1 = identity, class Proj2 = identity>
``````````
</details>
https://github.com/llvm/llvm-project/pull/238491
More information about the libcxx-commits
mailing list