[libcxx-commits] [libcxx] [libcxx] Fix typo in parallel `for_each_n` test (PR #78954)
Michael Schellenberger Costa via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 22 02:06:45 PST 2024
https://github.com/miscco created https://github.com/llvm/llvm-project/pull/78954
This fixes a trivial copy and paste error where we forgot to change `for_each` to `for_each_n`
>From 99cc066954001cb4e2192d9a7a0f531b31f6786e Mon Sep 17 00:00:00 2001
From: Michael Schellenberger Costa <miscco at nvidia.com>
Date: Mon, 22 Jan 2024 11:01:02 +0100
Subject: [PATCH] [libcxx] Fix typo in parallel `for_each_n` test
This fixes a trivial copy and paste error where we forgot to change `for_each` to `for_each_n`
---
.../alg.nonmodifying/alg.foreach/pstl.for_each_n.pass.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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