summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/strings/basic.string/string.modifiers/string_replace
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-01-20 05:41:24 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-01-20 05:41:24 +0000
commite612a8877a8370250c66f792f6f976aa546196ff (patch)
tree5276b4368db7b636c6f2844f5c96a51cd4f38a5a /libcxx/test/std/strings/basic.string/string.modifiers/string_replace
parent79de17d3af0b3f6d0fdd0baa4f41d5ac50ccd6d7 (diff)
downloadbcm5719-llvm-e612a8877a8370250c66f792f6f976aa546196ff.tar.gz
bcm5719-llvm-e612a8877a8370250c66f792f6f976aa546196ff.zip
More string fixes for noexcept cases. Apparently I didn't get them all in r258281.
llvm-svn: 258291
Diffstat (limited to 'libcxx/test/std/strings/basic.string/string.modifiers/string_replace')
-rw-r--r--libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_iter_iter.pass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_iter_iter.pass.cpp b/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_iter_iter.pass.cpp
index 60f2e3fe6d0..70c713b4f90 100644
--- a/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_iter_iter.pass.cpp
+++ b/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_iter_iter.pass.cpp
@@ -35,6 +35,7 @@ test(S s, typename S::size_type pos1, typename S::size_type n1, It f, It l, S ex
assert(s.size() == old_size - xlen + rlen);
}
+#ifndef TEST_HAS_NO_EXCEPTIONS
template <class S, class It>
void
test_exceptions(S s, typename S::size_type pos1, typename S::size_type n1, It f, It l)
@@ -50,6 +51,7 @@ test_exceptions(S s, typename S::size_type pos1, typename S::size_type n1, It f,
assert(s.__invariants());
assert(s == aCopy);
}
+#endif
const char* str = "12345678901234567890";
OpenPOWER on IntegriCloud