pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
1998-08-05
1998-08-05 22:50:11 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
cd90c5f42d74160e4a99eaee7ae70b4f585f210f (
20
lines) (+
19
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
test for for-loop-bug added
Rev: src/testsuite.in:1.119
1:
-
stest_true([["$Id: testsuite.in,v 1.
118
1998/
07
/
28
23
:
02
:
43
hubbe Exp $"]])
+
stest_true([["$Id: testsuite.in,v 1.
119
1998/
08
/
05
22
:
50
:
11
hubbe Exp $"]])
cond([[all_constants()->_verify_internals]], [[ test_do(_verify_internals())
1372:
test_any(while(1) if(1) break; return 1,1) // for
+
test_program(
+
int* ia=({1,2,3,4,5,6});
+
+
int a()
+
{
+
int i;
+
for (i=0; i<sizeof(ia); i++)
+
{
+
if (ia[i]==3)
+
{
+
ia=ia[..i-1]+ia[i+1..];
+
--i;
+
}
+
}
+
return 1;
+
}
+
)
test_any(int e; for(e=0;e<10;e++) break; return e,0) test_any(int e; for(e=0;e<10;e++) continue; return e,10) test_any(int e;string t=""; for(e=0;e<10;e++) t+=e; return t,"0123456789")