diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-01-15 19:32:32 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-01-15 19:32:32 +0000 |
commit | 404ee020f017bc3fffaadcdbc50f8f49a3674046 (patch) | |
tree | 3f7596ec3e7449b4fc2b7ab85d127343e4440d29 /libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation | |
parent | 8694428e365648723f5519af0a6818eb24ecb990 (diff) | |
download | bcm5719-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.is_permutation')
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation.pass.cpp index cde76d5ca06..52ad7befc64 100644 --- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation.pass.cpp +++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation.pass.cpp @@ -22,7 +22,7 @@ #include "test_macros.h" #if TEST_STD_VER > 17 -TEST_CONSTEXPR int test_constexpr() { +TEST_CONSTEXPR bool test_constexpr() { int ia[] = {0, 0, 0}; int ib[] = {1, 1, 0}; int ic[] = {1, 0, 1}; diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp index 13129289629..1d7db8cbc74 100644 --- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp +++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp @@ -29,7 +29,7 @@ bool counting_equals ( const T &a, const T &b ) { } #if TEST_STD_VER > 17 -TEST_CONSTEXPR int test_constexpr() { +TEST_CONSTEXPR bool test_constexpr() { int ia[] = {0, 0, 0}; int ib[] = {1, 1, 0}; int ic[] = {1, 0, 1}; |