Dumping test fail (Need to port the new encode_value() from Pike 7.2)
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3014
Reported by Martin Nilsson, IDA nilsson@pike.ida.liu.se
testsuite: Test 570 (shift 0) (CRNL) failed.
1: mixed a() {
2: class Test
3: {
4: class Codec
5: {
6: mixed nameof (mixed what)
7: {
8: return ([])[0];
9: }
10: }
11:
12: int main()
13: {
14: object o = compile_string (#"
15: constant x = ({0});
16: int f() {return 17;}
17: int g() {return x[0]();}
18: ")();
19: o->x[0] = o->f;
20: function e=encode_value;
21: function d=decode_value;
22: o = d (e (o, Codec()), Codec());
23: return function_object (o->x[0]) == o;
24: }
25: };
26: return Test()->main();
27: ; }
28: mixed b() { return 1; }
Error: Failed to encode object.
testsuite: Test 570 (shift 0) (CRNL):22: main()