summaryrefslogtreecommitdiffstats
path: root/pstl/test/std/algorithms
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-03-28 17:22:19 +0000
committerLouis Dionne <ldionne@apple.com>2019-03-28 17:22:19 +0000
commit1dd1b5d5f254ef25dd184d71cb60db92a750d96b (patch)
treec68e794e21b11ad764b911bef4d561108adc7c1e /pstl/test/std/algorithms
parent0f71a25e985a7667311d87a604bc43db8dc4c97b (diff)
downloadbcm5719-llvm-1dd1b5d5f254ef25dd184d71cb60db92a750d96b.tar.gz
bcm5719-llvm-1dd1b5d5f254ef25dd184d71cb60db92a750d96b.zip
[pstl] Introduce forward declarations
Necessary when pstl is included from with <algorithm> and <numeric> to prevent a partially declared standard library when pstl itself uses algorithms from <algorithm> and <numeric>. Also, this patch makes sure that configuration comes via standard headers. Directly including pstl_config.h in implementation files is incompatible with inclusion of pstl into a standard library implementation which provides it's own library wide configuration and may configure the library differently to the pstl_config.h used by the standalone implementation. Differential Revision: https://reviews.llvm.org/D59122 llvm-svn: 357189
Diffstat (limited to 'pstl/test/std/algorithms')
-rw-r--r--pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp2
-rw-r--r--pstl/test/std/algorithms/alg.modifying.operations/transform_unary.pass.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp b/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp
index 2d680c369f2..d44284de4e5 100644
--- a/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp
+++ b/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp
@@ -10,8 +10,8 @@
#include "support/pstl_test_config.h"
#ifdef PSTL_STANDALONE_TESTS
-#include "pstl/algorithm"
#include "pstl/execution"
+#include "pstl/algorithm"
#else
#include <execution>
#include <algorithm>
diff --git a/pstl/test/std/algorithms/alg.modifying.operations/transform_unary.pass.cpp b/pstl/test/std/algorithms/alg.modifying.operations/transform_unary.pass.cpp
index e198c6e2a8b..eae992c4111 100644
--- a/pstl/test/std/algorithms/alg.modifying.operations/transform_unary.pass.cpp
+++ b/pstl/test/std/algorithms/alg.modifying.operations/transform_unary.pass.cpp
@@ -10,8 +10,8 @@
#include "support/pstl_test_config.h"
#ifdef PSTL_STANDALONE_TESTS
-#include "pstl/algorithm"
#include "pstl/execution"
+#include "pstl/algorithm"
#else
#include <execution>
#include <algorithm>
OpenPOWER on IntegriCloud