[libcxx-commits] [libcxx] [libcxx] Fix typo in parallel `for_each_n` test (PR #78954)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 22 02:07:05 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Michael Schellenberger Costa (miscco)

<details>
<summary>Changes</summary>

This fixes a trivial copy and paste error where we forgot to change `for_each` to `for_each_n`

---
Full diff: https://github.com/llvm/llvm-project/pull/78954.diff


1 Files Affected:

- (modified) libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/pstl.for_each_n.pass.cpp (+3-3) 


``````````diff
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/pstl.for_each_n.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/pstl.for_each_n.pass.cpp
index d5b42966b00007c..c00eed1ead564e3 100644
--- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/pstl.for_each_n.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/pstl.for_each_n.pass.cpp
@@ -25,10 +25,10 @@
 #include "test_execution_policies.h"
 #include "test_iterators.h"
 
-EXECUTION_POLICY_SFINAE_TEST(for_each);
+EXECUTION_POLICY_SFINAE_TEST(for_each_n);
 
-static_assert(sfinae_test_for_each<int, int*, int*, bool (*)(int)>);
-static_assert(!sfinae_test_for_each<std::execution::parallel_policy, int*, int*, bool (*)(int)>);
+static_assert(sfinae_test_for_each_n<int, int*, int, bool (*)(int)>);
+static_assert(!sfinae_test_for_each_n<std::execution::parallel_policy, int*, int, bool (*)(int)>);
 
 template <class Iter>
 struct Test {

``````````

</details>


https://github.com/llvm/llvm-project/pull/78954


More information about the libcxx-commits mailing list