pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2010-07-11
2010-07-11 19:14:22 by Martin Stjernholm <mast@lysator.liu.se>
32b157a614a4b9e96929600724d615eb70ee3442 (
11
lines) (+
10
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added another copy_value test.
Rev: src/testsuite.in:1.897
1:
START_MARKER
-
test_true([["$Id: testsuite.in,v 1.
896
2010/07/
01
17
:
24
:22
grubba
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
897
2010/07/
11
19
:
14
:22
mast
Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]])
10419:
array(mapping) a = ({([])})*2; return a[0] == a[1]; ]], 1)
+
test_any([[
+
mapping m = ([]);
+
multiset l = (<>);
+
m->foo = ({l});
+
m->bar = ({l});
+
mapping copy = copy_value (m);
+
return copy->foo != copy->bar && copy->foo[0] == copy->bar[0];
+
]], 1)
test_any([[ class X {int __hash() {return 17;}};