Skip to content

Commit c91a11a

Browse files
committed
increase constexpr-steps as unstable abi tests cause more evaluation steps
1 parent 2f90ac3 commit c91a11a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/stable_sort.pass.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// constexpr void // constexpr in C++26
1313
// stable_sort(RandomAccessIterator first, RandomAccessIterator last);
1414

15+
// ADDITIONAL_COMPILE_FLAGS(has-fconstexpr-steps): -fconstexpr-steps=2000000
16+
1517
#include <algorithm>
1618
#include <array>
1719
#include <cassert>
@@ -234,14 +236,16 @@ int main(int, char**) {
234236
// run- and conditionally compile-time tests
235237
test_larger_sorts<256>();
236238
test_larger_sorts<257>();
239+
test_larger_sorts<499>();
240+
test_larger_sorts<500>();
237241
#if TEST_STD_VER >= 26
238242
static_assert((test_larger_sorts<256>(), true));
239243
static_assert((test_larger_sorts<257>(), true));
244+
static_assert((test_larger_sorts<499>(), true));
245+
static_assert((test_larger_sorts<500>(), true));
240246
#endif
241247

242248
// only runtime tests bc. error: "constexpr evaluation hit maximum step limit"
243-
test_larger_sorts<499>();
244-
test_larger_sorts<500>();
245249
test_larger_sorts<997>();
246250
test_larger_sorts<1000>();
247251
test_larger_sorts<1009>();

0 commit comments

Comments
 (0)