summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-01-13 23:05:15 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-01-13 23:05:15 +0000
commita015d392397108453527c86a638a2d110702a8a6 (patch)
tree8cd38de7516cf77fd7cb540eb7716c0ba6f02d2f /libcxx
parentd50a3eedb4df2298de19e94189559b85af0f5094 (diff)
downloadbcm5719-llvm-a015d392397108453527c86a638a2d110702a8a6.tar.gz
bcm5719-llvm-a015d392397108453527c86a638a2d110702a8a6.zip
Better comments in test. NFC
llvm-svn: 257702
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/libcxx/strings/iterators.noexcept.pass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/test/libcxx/strings/iterators.noexcept.pass.cpp b/libcxx/test/libcxx/strings/iterators.noexcept.pass.cpp
index 4c543b2a12f..f39a4deac73 100644
--- a/libcxx/test/libcxx/strings/iterators.noexcept.pass.cpp
+++ b/libcxx/test/libcxx/strings/iterators.noexcept.pass.cpp
@@ -14,7 +14,9 @@
// __libcpp_string_gets_noexcept_iterator determines if an iterator can be used
// w/o worrying about whether or not certain operations can throw.
-// This gives us a "fast path for string operations"
+// This gives us a "fast path for string operations".
+//
+// When exceptions are disabled, all iterators should get this "fast path"
//
#define _LIBCPP_NO_EXCEPTIONS
@@ -44,7 +46,6 @@ int main()
static_assert(( std::__libcpp_string_gets_noexcept_iterator<std::reverse_iterator<std::__wrap_iter<char *> > > ::value), "");
// iterators in the libc++ test suite
-// Since we have turned off exceptions, they're all noexcept
static_assert(( std::__libcpp_string_gets_noexcept_iterator<output_iterator <char *> >::value), "");
static_assert(( std::__libcpp_string_gets_noexcept_iterator<input_iterator <char *> >::value), "");
static_assert(( std::__libcpp_string_gets_noexcept_iterator<forward_iterator <char *> >::value), "");
OpenPOWER on IntegriCloud