mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 17:51:22 +00:00
Add asserts that the nullptr is maintained in string erase operations.
llvm-svn: 303899
This commit is contained in:
1 parent
9b22df691b
commit
4deabc97a1
4 files changed
+6
No files matched your search
@@ -24,6 +24,7 @@ test(S s, typename S::difference_type pos, S expected)
|
||||
typename S::const_iterator p = s.begin() + pos;
|
||||
typename S::iterator i = s.erase(p);
|
||||
LIBCPP_ASSERT(s.__invariants());
|
||||
assert(s[s.size()] == typename S::value_type());
|
||||
assert(s == expected);
|
||||
assert(i - s.begin() == pos);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user