Branch: Tag:

2003-03-07

2003-03-07 14:17:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added test of las.c:find_return_type().

Rev: src/testsuite.in:1.615

1: - test_true([["$Id: testsuite.in,v 1.614 2003/03/04 23:33:50 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.615 2003/03/07 14:17:25 grubba Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
280:    Bar()->f(), typeof(c->m), typeof(d->m), typeof(d->b->m));   }]], "mixed$mixed$string$mixed")    + // las.c:find_return_type() checks. + test_eq([[ +  // Test case from Robert J. Budzynski <Robert.Budzynski@fuw.edu.pl>. +  // When broken the return type will be mixed. +  sprintf("%O", typeof(lambda(string s){ +  return Locale.Charset.decoder("utf-8")->feed(s)->drain(); +  })) + ]], [[ "function(string : string)" ]]) +    // type checks      define(test_type_error, [[