From 57d545932f539d06c52862310ecdfe79c143bb6b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 9 May 2019 11:23:41 -0700 Subject: [PATCH] [test-iter] Don't walk past end That's not legal. --- src/test-iter.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test-iter.cc b/src/test-iter.cc index e6c5d45..2f6ed74 100644 --- a/src/test-iter.cc +++ b/src/test-iter.cc @@ -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]); -- 2.7.4