pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2009-06-22
2009-06-22 18:56:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>
b5ca8420c9185a69f317be45667a44079528d461 (
9
lines) (+
8
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
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(`+))