Skip to content

Commit

Permalink
[libc++][PSTL] Add a missing policy argument in the std::merge test
Browse files Browse the repository at this point in the history
Reviewed By: ldionne, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D154546
  • Loading branch information
philnik777 committed Jul 7, 2023
1 parent bfefeeb commit ece2294
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ struct Test {
}

std::vector<int> out(std::size(a) + std::size(b));
std::merge(
Iter1(a.data()), Iter1(a.data() + a.size()), Iter2(b.data()), Iter2(b.data() + b.size()), std::begin(out));
std::merge(policy,
Iter1(a.data()),
Iter1(a.data() + a.size()),
Iter2(b.data()),
Iter2(b.data() + b.size()),
std::begin(out));
std::vector<int> expected(200);
std::iota(expected.begin(), expected.end(), 0);
assert(std::equal(out.begin(), out.end(), expected.begin()));
Expand Down

0 comments on commit ece2294

Please sign in to comment.