From 1e96d5380ef393ecd1c414c59070a33486cf067d Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sun, 23 Oct 2016 18:55:51 +0000 Subject: [PATCH] Make make_from_tuple tests more portable. Patch from STL@microsoft.com llvm-svn: 284943 --- .../tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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))); } } -- 2.7.4