[test-iter] Don't walk past end
That's not legal.
This commit is contained in:
parent
46837910e6
commit
57d545932f
@ -82,8 +82,10 @@ test_iterator_non_default_constructable (Iter it)
|
||||
(void) _;
|
||||
|
||||
it += it.len ();
|
||||
it = it + 10;
|
||||
it = 10 + it;
|
||||
if (0)
|
||||
it = it + 10;
|
||||
if (0)
|
||||
it = 10 + it;
|
||||
|
||||
assert (*it == it[0]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user