summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/algorithms/alg.nonmodifying/alg.none_of
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-01-15 19:32:32 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-01-15 19:32:32 +0000
commit404ee020f017bc3fffaadcdbc50f8f49a3674046 (patch)
tree3f7596ec3e7449b4fc2b7ab85d127343e4440d29 /libcxx/test/std/algorithms/alg.nonmodifying/alg.none_of
parent8694428e365648723f5519af0a6818eb24ecb990 (diff)
downloadbcm5719-llvm-404ee020f017bc3fffaadcdbc50f8f49a3674046.tar.gz
bcm5719-llvm-404ee020f017bc3fffaadcdbc50f8f49a3674046.zip
Some of the tests from earlier today had 'int' as the return type when it should have been 'bool'. Fix that. It doesn't change the behavior of any of the tests, but it's more accurate.
llvm-svn: 322505
Diffstat (limited to 'libcxx/test/std/algorithms/alg.nonmodifying/alg.none_of')
-rw-r--r--libcxx/test/std/algorithms/alg.nonmodifying/alg.none_of/none_of.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.none_of/none_of.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.none_of/none_of.pass.cpp
index f3b8e778168..356c2fbb8a7 100644
--- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.none_of/none_of.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.none_of/none_of.pass.cpp
@@ -28,7 +28,7 @@ struct test1
};
#if TEST_STD_VER > 17
-TEST_CONSTEXPR int test_constexpr() {
+TEST_CONSTEXPR bool test_constexpr() {
int ia[] = {1, 3, 6, 7};
int ib[] = {1, 3, 5, 7};
return !std::none_of(std::begin(ia), std::end(ia), test1())
OpenPOWER on IntegriCloud