Branch: Tag:

1998-08-05

1998-08-05 22:50:11 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

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")