Branch: Tag:

2003-03-21

2003-03-21 13:02:59 by Johan Sundström <oyasumi@gmail.com>

Test for regression of the bug Marcus Agehall reported yesterday.

Rev: src/testsuite.in:1.623

1: - test_true([["$Id: testsuite.in,v 1.622 2003/03/20 16:33:07 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.623 2003/03/21 13:02:59 jhs Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
138:    return 0;   ]], 0)    + test_any([[ +  // Test that optimizer notes side effects in arguments to `!= +  // Thanks to Marcus Agehall +  int j = 20, i; +  string end = "17"; +  for( ; i < j ; i++) +  if(sscanf(end, "%d%s", j, end) != 2) +  cd("."); +  return i; + ]], 17) +    test_compile_any([[    void foo()    {