summaryrefslogtreecommitdiffstats
path: root/pstl/test/std/numerics/numeric.ops/transform_reduce.pass.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-07-18 20:22:28 +0000
committerLouis Dionne <ldionne@apple.com>2019-07-18 20:22:28 +0000
commit01963cec9b3fbc8ec98da449180d95be224dfadd (patch)
treeeb8fa0aff7173862b588f43301e80985513dd02e /pstl/test/std/numerics/numeric.ops/transform_reduce.pass.cpp
parent96f497081351e01f70af275abbf98847d25a5158 (diff)
downloadbcm5719-llvm-01963cec9b3fbc8ec98da449180d95be224dfadd.tar.gz
bcm5719-llvm-01963cec9b3fbc8ec98da449180d95be224dfadd.zip
[NFC][pstl] Run clang-format on the sources, including the tests
llvm-svn: 366492
Diffstat (limited to 'pstl/test/std/numerics/numeric.ops/transform_reduce.pass.cpp')
-rw-r--r--pstl/test/std/numerics/numeric.ops/transform_reduce.pass.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/pstl/test/std/numerics/numeric.ops/transform_reduce.pass.cpp b/pstl/test/std/numerics/numeric.ops/transform_reduce.pass.cpp
index c4317c43e7d..7341ed570cd 100644
--- a/pstl/test/std/numerics/numeric.ops/transform_reduce.pass.cpp
+++ b/pstl/test/std/numerics/numeric.ops/transform_reduce.pass.cpp
@@ -124,10 +124,9 @@ main()
test_by_type<int64_t>(0, [](const int64_t& a, const int64_t& b) -> int64_t { return a | b; }, XOR(),
[](const int64_t& x) -> int64_t { return x * 2; },
[](std::size_t) -> int64_t { return int64_t(rand() % 1000); });
- test_by_type<float32_t>(1.0f, std::multiplies<float32_t>(),
- [](const float32_t& a, const float32_t& b) -> float32_t { return a + b; },
- [](const float32_t& x) -> float32_t { return x + 2; },
- [](std::size_t) -> float32_t { return rand() % 1000; });
+ test_by_type<float32_t>(
+ 1.0f, std::multiplies<float32_t>(), [](const float32_t& a, const float32_t& b) -> float32_t { return a + b; },
+ [](const float32_t& x) -> float32_t { return x + 2; }, [](std::size_t) -> float32_t { return rand() % 1000; });
test_by_type<MyClass>(MyClass(), std::plus<MyClass>(), std::multiplies<MyClass>(), std::negate<MyClass>(),
[](std::size_t) -> MyClass { return MyClass(rand() % 1000); });
OpenPOWER on IntegriCloud