Branch: Tag:

2007-04-07

2007-04-07 19:30:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added casts for the bug 3013 (#3013) and 3014 tests, so that they survive the new type checker.

Rev: src/testsuite.in:1.775

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.774 2007/04/03 16:54:46 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.775 2007/04/07 19:30:26 grubba Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
3910:    {    array c = ({"subres"});    object o = compile ( -  #"string res() {return `+(@c());} +  #"string res() {return `+(@((array(function(:string)))c)());}    string subres() {return \"foo\";}",    Resolver (c))();    for (int i = 0; i < sizeof (c); i++)
3947:    object o = compile_string (#"    constant x = ({0});    int f() {return 17;} -  int g() {return x[0]();} +  int g() {return ((array(function(:int)))x)[0]();}    ")();    o->x[0] = o->f;    function e=encode_value;