pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2008-09-12
2008-09-12 15:57:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>
b8efef61fb6c68fa02a4e5211a0d296ef5adbecf (
16
lines) (+
15
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added test and FIXME regarding soft casting of function types.
Rev: src/testsuite.in:1.852
1:
START_MARKER
-
test_true([["$Id: testsuite.in,v 1.
851
2008/09/
09
16
:
53
:
48
mast
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
852
2008/09/
12
15
:
57
:
02
grubba
Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]])
567:
test_type_error(object,mapping,([1:2,3:4])) test_type_error(object,multiset,(<1,2,3>))
+
// Check that complex function types survive soft casting to function.
+
// FIXME: Globbing in ignoring warnings.
+
ignore_warning("Soft cast of scope(0,function((0=multiset), (1=multiset) ... : 0 | 1) | function((0=mapping), (1=mapping) ... : 0 | 1) | function((0=array), (1=array) ... : 0 | 1) | function(int, int ... : int) | !function(!string ... : mixed) & function(string | int | float, string | int | float ... : string) | !function(!(object | mixed) ... : mixed) & function(mixed ... : mixed) | !function(!float ... : mixed) & function(int | float, int | float ... : float)) to function is a noop.", [[
+
test_eq(typeof([function]`+), typeof(`+))
+
]])
+
test_any([[ /* Detect bug in modify_shared_string(). *
8316:
while (0); ]]); test_do([[
+
// Note: This is valid <= 7.0 code.
+
foreach (({1,2,3}), int j)
+
do
+
if (17 - j - gauge {break;}) return 0;
+
while (0);
+
]]);
+
test_do([[
int gnu (mixed... args) {}; gnu(@indices (all_constants()), gauge { foreach (({1,2,3}), int j)