pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:8840:   test_any(int e;string t=""; for(e=0;e>-10;e--) t+=e; return t,"0-1-2-3-4-5-6-7-8-9")      // foreach   test_any([[int e;string t=""; foreach(({7,6,3,8}),e) t+=e; return t]],"7638")   test_any([[    /* FIXME: This test needs to be proofed against the optimizer. */    string s;if(1) foreach(({}),s); else foreach(({}),s); return 1   ]],1)      test_any([[ +  // Bug 7426. +  array a = ({}); +  foreach(a[1..], mixed e) return 0; +  return 1; + ]], 1) +  + test_any([[    int ret;    foreach( ([1:2,3:5,7:11,13:17]) ; int a ; int b) ret+=a*b;    return ret;   ]],315)      test_any([[    int ret;    foreach( ([1:2,3:5,7:11,13:17]) ; ; int b) ret+=b;    return ret;   ]],35)