Skip to content

Commit

Permalink
counted ponter range for test
Browse files Browse the repository at this point in the history
  • Loading branch information
keithalewis committed Jun 13, 2024
1 parent abc04f2 commit 0001e6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fms_iterable.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,15 @@ int test_pointer() {
++p;
assert(!p);
}
{
int i[] = { 1, 2, 3 };
pointer p(i, 3);
int j = 1;
for (const auto& pi : p) {
assert(pi == j);
++j;
}
}

return 0;
}
Expand Down

0 comments on commit 0001e6a

Please sign in to comment.