[test-iter] Don't walk past end

That's not legal.
This commit is contained in:
Behdad Esfahbod 2019-05-09 11:23:41 -07:00
parent 46837910e6
commit 57d545932f

View File

@ -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]);