[test] Test unary operator+

"Test" as in compiles..
This commit is contained in:
Behdad Esfahbod 2019-01-27 00:51:43 +01:00
parent 778c96b8d7
commit b62e7f9223
1 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,10 @@ test_iterator (Iter it)
for (auto c = it.iter (); c; c++)
*c;
/* Same. */
for (auto c = +it; c; c++)
*c;
it += it.len ();
it = it + 10;
it = 10 + it;