pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:1:
START_MARKER
-
test_true([["$Id: testsuite.in,v 1.
897
2010/07/
11
19
:
14
:
22
mast Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
898
2010/07/
27
15
:
33
:
35
mast Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]]) test_compile_any([[#pike 7.4]]) test_compile_any([[#pike 7.0]]) test_compile_any([[#pike 0.6]]) cond([[all_constants()->_verify_internals]], [[ test_do(_verify_internals())
pike.git/src/testsuite.in:12129:
// - write // - zero_type test_eq(zero_type(0),0) test_eq(zero_type(([])[7]),1) test_eq(zero_type(([7: 0])[7]),0) test_eq(zero_type(([7: UNDEFINED])[7]),0) test_eq(zero_type(UNDEFINED), 1) test_eq(zero_type (m_delete (([]), 1)), 1)
+
test_eq(zero_type (allocate (5, UNDEFINED)[2]), 1);
+
test_eq(zero_type (allocate (5, 0)[2]), 0);
+
test_eq(zero_type (allocate (5)[2]), 0);
+
test_true([[lambda (int|void a) { return zero_type(a); }()]]) test_true([[lambda () {mixed a; return zero_type(a = ([])[0]);}()]]) test_true([[lambda () {mapping a=([]); return zero_type(a[0] = ([])[0]);}()]]) test_true([[zero_type (lambda () {return ([])[0];}())]]) test_any([[ int i = lambda() {return UNDEFINED;}(); lambda (int x) {} (i += 17); return zero_type (i); ]], 0)