summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-01-13 22:52:36 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-01-13 22:52:36 +0000
commit3dd0ff3b627b974019b837cc5f991d7253324bc5 (patch)
tree1ba27c2d146a0e2ee68814ecd2834220b2404ced /libcxx/test
parentba651344a83544bd318df44513de38fff54ce67f (diff)
downloadbcm5719-llvm-3dd0ff3b627b974019b837cc5f991d7253324bc5.tar.gz
bcm5719-llvm-3dd0ff3b627b974019b837cc5f991d7253324bc5.zip
Fix test for C++03 - lacking noexcept
llvm-svn: 257696
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/libcxx/strings/iterators.exceptions.pass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/libcxx/strings/iterators.exceptions.pass.cpp b/libcxx/test/libcxx/strings/iterators.exceptions.pass.cpp
index cc542f87a37..591782b5dd4 100644
--- a/libcxx/test/libcxx/strings/iterators.exceptions.pass.cpp
+++ b/libcxx/test/libcxx/strings/iterators.exceptions.pass.cpp
@@ -49,7 +49,11 @@ int main()
static_assert((!std::__libcpp_string_gets_noexcept_iterator<random_access_iterator<char *> >::value), "");
static_assert((!std::__libcpp_string_gets_noexcept_iterator<ThrowingIterator <char *> >::value), "");
+#if __has_feature(cxx_noexcept)
static_assert(( std::__libcpp_string_gets_noexcept_iterator<NonThrowingIterator <char *> >::value), "");
+#else
+ static_assert((!std::__libcpp_string_gets_noexcept_iterator<NonThrowingIterator <char *> >::value), "");
+#endif
//
// iterators from libc++'s containers
OpenPOWER on IntegriCloud