From 2dceed874d7cb03913b66c2fa0ae8de60c09a816 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Wed, 13 Jan 2016 22:52:36 +0000 Subject: [PATCH] Fix test for C++03 - lacking noexcept git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@257696 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxx/strings/iterators.exceptions.pass.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/libcxx/strings/iterators.exceptions.pass.cpp b/test/libcxx/strings/iterators.exceptions.pass.cpp index cc542f87a..591782b5d 100644 --- a/test/libcxx/strings/iterators.exceptions.pass.cpp +++ b/test/libcxx/strings/iterators.exceptions.pass.cpp @@ -49,7 +49,11 @@ int main() static_assert((!std::__libcpp_string_gets_noexcept_iterator >::value), ""); static_assert((!std::__libcpp_string_gets_noexcept_iterator >::value), ""); +#if __has_feature(cxx_noexcept) static_assert(( std::__libcpp_string_gets_noexcept_iterator >::value), ""); +#else + static_assert((!std::__libcpp_string_gets_noexcept_iterator >::value), ""); +#endif // // iterators from libc++'s containers