提交 57d54593 编写于 作者: B Behdad Esfahbod

[test-iter] Don't walk past end

That's not legal.
上级 46837910
...@@ -82,8 +82,10 @@ test_iterator_non_default_constructable (Iter it) ...@@ -82,8 +82,10 @@ test_iterator_non_default_constructable (Iter it)
(void) _; (void) _;
it += it.len (); it += it.len ();
it = it + 10; if (0)
it = 10 + it; it = it + 10;
if (0)
it = 10 + it;
assert (*it == it[0]); assert (*it == it[0]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册