diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2016-01-13 22:52:36 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2016-01-13 22:52:36 +0000 |
| commit | 3dd0ff3b627b974019b837cc5f991d7253324bc5 (patch) | |
| tree | 1ba27c2d146a0e2ee68814ecd2834220b2404ced /libcxx/test | |
| parent | ba651344a83544bd318df44513de38fff54ce67f (diff) | |
| download | bcm5719-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.cpp | 4 |
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 |

