diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-10-01 10:46:01 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-10-01 10:46:01 +0000 |
commit | 2c8c71f13e2419e258b12f793213208926c89723 (patch) | |
tree | 1ea5b3a91908eb1ec8579635017d40a785c4985d /libcxx/test/std/utilities/utility/pairs | |
parent | 341e47891b0e81e92fb615f1e69e6a79027f13ed (diff) | |
download | bcm5719-llvm-2c8c71f13e2419e258b12f793213208926c89723.tar.gz bcm5719-llvm-2c8c71f13e2419e258b12f793213208926c89723.zip |
Remove all instances of _LIBCPP_HAS_NO_RVALUE_REFERENCES from test/std/utilities
llvm-svn: 283032
Diffstat (limited to 'libcxx/test/std/utilities/utility/pairs')
3 files changed, 9 insertions, 8 deletions
diff --git a/libcxx/test/std/utilities/utility/pairs/pair.astuple/get_rv.pass.cpp b/libcxx/test/std/utilities/utility/pairs/pair.astuple/get_rv.pass.cpp index aa5ca530913..24868a6a360 100644 --- a/libcxx/test/std/utilities/utility/pairs/pair.astuple/get_rv.pass.cpp +++ b/libcxx/test/std/utilities/utility/pairs/pair.astuple/get_rv.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03 + // <utility> // template <class T1, class T2> struct pair @@ -21,12 +23,10 @@ int main() { -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES { typedef std::pair<std::unique_ptr<int>, short> P; P p(std::unique_ptr<int>(new int(3)), 4); std::unique_ptr<int> ptr = std::get<0>(std::move(p)); assert(*ptr == 3); } -#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES } diff --git a/libcxx/test/std/utilities/utility/pairs/pairs.pair/assign_rv_pair_U_V.pass.cpp b/libcxx/test/std/utilities/utility/pairs/pairs.pair/assign_rv_pair_U_V.pass.cpp index a200390f488..5f76aeff60c 100644 --- a/libcxx/test/std/utilities/utility/pairs/pairs.pair/assign_rv_pair_U_V.pass.cpp +++ b/libcxx/test/std/utilities/utility/pairs/pairs.pair/assign_rv_pair_U_V.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03 + // <utility> // template <class T1, class T2> struct pair @@ -29,7 +31,6 @@ struct Derived int main() { -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES { typedef std::pair<std::unique_ptr<Derived>, short> P1; typedef std::pair<std::unique_ptr<Base>, long> P2; @@ -39,5 +40,4 @@ int main() assert(p2.first == nullptr); assert(p2.second == 4); } -#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES } diff --git a/libcxx/test/std/utilities/utility/pairs/pairs.spec/make_pair.pass.cpp b/libcxx/test/std/utilities/utility/pairs/pairs.spec/make_pair.pass.cpp index 4a6d71e7b9c..0f6957d4855 100644 --- a/libcxx/test/std/utilities/utility/pairs/pairs.spec/make_pair.pass.cpp +++ b/libcxx/test/std/utilities/utility/pairs/pairs.spec/make_pair.pass.cpp @@ -15,6 +15,8 @@ #include <memory> #include <cassert> +#include "test_macros.h" + int main() { { @@ -24,7 +26,7 @@ int main() assert(p1.second == 4); } -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES +#if TEST_STD_VER >= 11 { typedef std::pair<std::unique_ptr<int>, short> P1; P1 p1 = std::make_pair(std::unique_ptr<int>(new int(3)), 4); @@ -37,9 +39,8 @@ int main() assert(p1.first == nullptr); assert(p1.second == 4); } -#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES - -#if _LIBCPP_STD_VER > 11 +#endif +#if TEST_STD_VER >= 14 { typedef std::pair<int, short> P1; constexpr P1 p1 = std::make_pair(3, 4); |