Branch: Tag:

2009-06-22

2009-06-22 18:56:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added check for compiler type system bug.

Rev: src/testsuite.in:1.872

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.871 2009/06/21 17:17:37 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.872 2009/06/22 18:56:11 grubba Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
596:   test_type_error(object,mapping,([1:2,3:4]))   test_type_error(object,multiset,(<1,2,3>))    + test_any_equal([[ +  // This code caused a NULL dereference in Pike 7.8.306 and earlier. +  indices foo; +  return typeof(foo); + ]], typeof(indices((mixed)0))) +    // Check that complex function types survive soft casting to function.   ignore_warning("Soft cast of scope(0,function(*)) to function is a noop.", [[    test_eq(typeof([function]`+), typeof(`+))