From: Eric Fiselier Date: Sun, 23 Oct 2016 18:55:51 +0000 (+0000) Subject: Make make_from_tuple tests more portable. Patch from STL@microsoft.com X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e96d5380ef393ecd1c414c59070a33486cf067d;p=platform%2Fupstream%2Fllvm.git Make make_from_tuple tests more portable. Patch from STL@microsoft.com llvm-svn: 284943 --- diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp index 143ae19..9ffd4c1 100644 --- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp +++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp @@ -175,14 +175,14 @@ void test_noexcept() { Tuple tup; ((void)tup); Tuple const& ctup = tup; ((void)ctup); ASSERT_NOT_NOEXCEPT(std::make_from_tuple(ctup)); - ASSERT_NOEXCEPT(std::make_from_tuple(std::move(tup))); + LIBCPP_ONLY(ASSERT_NOEXCEPT(std::make_from_tuple(std::move(tup)))); } { using Tuple = std::pair; Tuple tup; ((void)tup); Tuple const& ctup = tup; ((void)ctup); ASSERT_NOT_NOEXCEPT(std::make_from_tuple(ctup)); - ASSERT_NOEXCEPT(std::make_from_tuple(std::move(tup))); + LIBCPP_ONLY(ASSERT_NOEXCEPT(std::make_from_tuple(std::move(tup)))); } { using Tuple = std::tuple; @@ -192,7 +192,7 @@ void test_noexcept() { { using Tuple = std::tuple; Tuple tup; ((void)tup); - ASSERT_NOEXCEPT(std::make_from_tuple(tup)); + LIBCPP_ONLY(ASSERT_NOEXCEPT(std::make_from_tuple(tup))); } { using Tuple = std::array; @@ -202,7 +202,7 @@ void test_noexcept() { { using Tuple = std::array; Tuple tup; ((void)tup); - ASSERT_NOEXCEPT(std::make_from_tuple(tup)); + LIBCPP_ONLY(ASSERT_NOEXCEPT(std::make_from_tuple(tup))); } }