Branch: Tag:

2009-03-11

2009-03-11 21:40:54 by Marcus Comstedt <marcus@mc.pp.se>

Added checks for incorrect type checking on functions that use sprintf only if there are more than one argument.

Rev: src/testsuite.in:1.866

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.865 2009/02/21 12:55:26 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.866 2009/03/11 21:40:54 marcus Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
525:    ([function] set_weak_flag) (17, "foo");   ]])    + // Check that write() and error() with one argument are not + // incorrectly subjected to sprintf() argument + test_compile([[write("%\u2323");]]) + test_compile([[error("%\u2323");]]) +    // type checks      define(test_type_error, [[