Skip to content

Commit a68eb02

Browse files
committed
[libc++][ranges] attempt to reduce the steps required for 'constexpr' evaluation in 'ranges.shift_left.pass.cpp'
1 parent aa1f598 commit a68eb02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/test/std/algorithms/alg.modifying.operations/alg.shift/ranges.shift_left.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ static_assert(!HasShiftLeftR<PermutableRangeNotSwappable>);
4545
template <class Iter, class Sent>
4646
constexpr void test_iter_sent() {
4747
{
48-
const std::array<int, 15> original = {3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9};
49-
std::array<int, 15> scratch;
48+
const std::array<int, 8> original = {3, 1, 4, 1, 5, 9, 2, 6};
49+
std::array<int, 8> scratch;
5050

5151
// (iterator, sentinel) overload
52-
for (size_t n = 0; n <= 15; ++n) {
52+
for (size_t n = 0; n <= original.size(); ++n) {
5353
for (size_t k = 0; k <= n + 2; ++k) {
5454
auto begin = Iter(scratch.data());
5555
auto end = Sent(Iter(scratch.data() + n));

0 commit comments

Comments
 (0)