[libcxx-commits] [libcxx] ece2294 - [libc++][PSTL] Add a missing policy argument in the std::merge test

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 7 15:41:48 PDT 2023


Author: Nikolas Klauser
Date: 2023-07-07T15:41:41-07:00
New Revision: ece2294b9a6d615d632eedaa2d60dc766f5b5c84

URL: https://github.com/llvm/llvm-project/commit/ece2294b9a6d615d632eedaa2d60dc766f5b5c84
DIFF: https://github.com/llvm/llvm-project/commit/ece2294b9a6d615d632eedaa2d60dc766f5b5c84.diff

LOG: [libc++][PSTL] Add a missing policy argument in the std::merge test

Reviewed By: ldionne, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D154546

Added: 
    

Modified: 
    libcxx/test/std/algorithms/alg.sorting/alg.merge/pstl.merge.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/algorithms/alg.sorting/alg.merge/pstl.merge.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.merge/pstl.merge.pass.cpp
index aa16208b90d0f4..0667f6f8de4932 100644
--- a/libcxx/test/std/algorithms/alg.sorting/alg.merge/pstl.merge.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.sorting/alg.merge/pstl.merge.pass.cpp
@@ -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()));


        


More information about the libcxx-commits mailing list