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

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 22 03:10:34 PST 2024


Author: Michael Schellenberger Costa
Date: 2024-01-22T12:10:30+01:00
New Revision: ad01447d30ed48e127254e0c45350c938d72c966

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

LOG: [libcxx] Fix typo in parallel `for_each_n` test (#78954)

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

Added: 
    

Modified: 
    libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/pstl.for_each_n.pass.cpp

Removed: 
    


################################################################################
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 d5b42966b00007..c00eed1ead564e 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 {


        


More information about the libcxx-commits mailing list