diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-04-18 23:26:47 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-04-18 23:26:47 +0000 |
commit | ddda456a76b2809e818c82d90252f42511900b12 (patch) | |
tree | 2d0f023c7cdeba05b6bd8c89f9534585fb1dc8b3 /libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_if.pass.cpp | |
parent | 918802bed47a6083c968406371e1b3f71ae95a74 (diff) | |
download | bcm5719-llvm-ddda456a76b2809e818c82d90252f42511900b12.tar.gz bcm5719-llvm-ddda456a76b2809e818c82d90252f42511900b12.zip |
Cleanup _LIBCPP_HAS_NO_<c++11-feature> in algorithm
llvm-svn: 300625
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_if.pass.cpp')
-rw-r--r-- | libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_if.pass.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_if.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_if.pass.cpp index b234431295a..c40f3e72783 100644 --- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_if.pass.cpp +++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_if.pass.cpp @@ -18,10 +18,9 @@ #include <algorithm> #include <functional> #include <cassert> -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES #include <memory> -#endif +#include "test_macros.h" #include "test_iterators.h" #include "counting_predicates.hpp" @@ -46,8 +45,7 @@ test() assert(cp.count() == sa); } -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES - +#if TEST_STD_VER >= 11 struct pred { bool operator()(const std::unique_ptr<int>& i) {return *i == 2;} @@ -77,8 +75,7 @@ test1() assert(*ia[4] == 3); assert(*ia[5] == 4); } - -#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES +#endif // TEST_STD_VER >= 11 int main() { @@ -87,12 +84,10 @@ int main() test<random_access_iterator<int*> >(); test<int*>(); -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES - +#if TEST_STD_VER >= 11 test1<forward_iterator<std::unique_ptr<int>*> >(); test1<bidirectional_iterator<std::unique_ptr<int>*> >(); test1<random_access_iterator<std::unique_ptr<int>*> >(); test1<std::unique_ptr<int>*>(); - -#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES +#endif // TEST_STD_VER >= 11 } |