pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2002-06-11
2002-06-11 14:15:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>
14dd024f7634fc6dcfb4a67d3b75bed1dc5b44ac (
14
lines) (+
13
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added test for [bug
2690 (#2690)
].
Rev: src/testsuite.in:1.522
1:
-
test_true([["$Id: testsuite.in,v 1.
521
2002/06/
10
20
:
46
:
42
mast
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
522
2002/06/
11
14
:
15
:
27
grubba
Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
46:
]]) test_any([[
+
// bug 2690
+
array(function) foo(void|int b)
+
{
+
int add() { return b++; };
+
return ({ add, add });
+
};
+
array(function) bar = foo();
+
return equal(({`==(@bar),@bar()}), ({ 1, 0, 1 }));
+
]], 1)
+
+
test_any([[
int f (int i) {i = 0; return i;}; return f (1); ]],0)