File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 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 >();
You can’t perform that action at this time.
0 commit comments