mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-28 08:51:34 +00:00
More string fixes for noexcept cases. Apparently I didn't get them all in r258281.
llvm-svn: 258291
This commit is contained in:
1 parent
79de17d3af
commit
e612a8877a
5 files changed
+9
-1
No files matched your search
+2
@@ -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";
|
||||
|
||||
|
||||
Reference in new issue
Block a user