diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-07-18 21:53:16 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-07-18 21:53:16 +0000 |
commit | 19fa3376100f59d083383a5db03a969a4a45066b (patch) | |
tree | 3568f3c850a0fb452ed8c6f8a65b5e728fd9b64c /libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp | |
parent | b67e689f02994ddfb3f4ab033062466f187c76d7 (diff) | |
download | bcm5719-llvm-19fa3376100f59d083383a5db03a969a4a45066b.tar.gz bcm5719-llvm-19fa3376100f59d083383a5db03a969a4a45066b.zip |
Fix warnings in test/std/algorithms
llvm-svn: 242626
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp')
-rw-r--r-- | libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp index 7810dec2fe1..cf23c774399 100644 --- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp +++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp @@ -17,10 +17,9 @@ #include <algorithm> #include <cassert> -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES #include <memory> -#endif +#include "test_macros.h" #include "test_iterators.h" struct is_odd @@ -283,7 +282,7 @@ test() } } -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES +#if TEST_STD_VER >= 11 struct is_null { @@ -298,9 +297,10 @@ test1() const unsigned size = 5; std::unique_ptr<int> array[size]; Iter r = std::stable_partition(Iter(array), Iter(array+size), is_null()); + assert(r == Iter(array+size)); } -#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES +#endif // TEST_STD_VER >= 11 int main() { @@ -308,7 +308,7 @@ int main() test<random_access_iterator<std::pair<int,int>*> >(); test<std::pair<int,int>*>(); -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES +#if TEST_STD_VER >= 11 test1<bidirectional_iterator<std::unique_ptr<int>*> >(); #endif } |