pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2011-03-27
2011-03-27 20:58:16 by Martin Stjernholm <mast@lysator.liu.se>
6d0dbbc8857eb09672868c6f17fd94807eaf9e87 (
13
lines) (+
13
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
Verify how foreach steps iterators.
8774:
return i; ]], 0)
+
test_any([[
+
// Check foreach iterator stepping behavior.
+
array a = indices (allocate (7));
+
Array.Iterator i = get_iterator (a);
+
foreach (i;; int v)
+
if (v > 3) break;
+
foreach (i;; int v)
+
if (v < 5) break;
+
foreach (i;; int v)
+
return v;
+
]], 4)
+
// do-while test_any(int e;string t=""; e=0; do{ t+=e; }while(++e<6); return t,"012345";)