[libcxx-commits] [PATCH] D154546: [libc++][PSTL] Add a missing policy argument in the std::merge test
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 7 15:41:52 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGece2294b9a6d: [libc++][PSTL] Add a missing policy argument in the std::merge test (authored by philnik).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154546/new/
https://reviews.llvm.org/D154546
Files:
libcxx/test/std/algorithms/alg.sorting/alg.merge/pstl.merge.pass.cpp
Index: libcxx/test/std/algorithms/alg.sorting/alg.merge/pstl.merge.pass.cpp
===================================================================
--- libcxx/test/std/algorithms/alg.sorting/alg.merge/pstl.merge.pass.cpp
+++ libcxx/test/std/algorithms/alg.sorting/alg.merge/pstl.merge.pass.cpp
@@ -96,8 +96,12 @@
}
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()));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154546.538285.patch
Type: text/x-patch
Size: 903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230707/42d27578/attachment.bin>
More information about the libcxx-commits
mailing list