Skip to content
Snippets Groups Projects
Commit c023e9ec authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

test for gc() on stack frames

Rev: src/testsuite.in:1.229
parent b11182b7
No related branches found
No related tags found
No related merge requests found
test_true([["$Id: testsuite.in,v 1.228 1999/11/18 04:16:13 hubbe Exp $"]]) test_true([["$Id: testsuite.in,v 1.229 1999/11/18 10:13:16 hubbe Exp $"]])
cond([[all_constants()->_verify_internals]], cond([[all_constants()->_verify_internals]],
[[ [[
...@@ -1308,6 +1308,12 @@ ifefun(gc, ...@@ -1308,6 +1308,12 @@ ifefun(gc,
test_any([[object o=class c {object o;}(); o->o=o; gc(); o=0; return gc() > 0; ]],1); test_any([[object o=class c {object o;}(); o->o=o; gc(); o=0; return gc() > 0; ]],1);
test_any([[mapping m=([]); m[m]=m; gc(); m=0; return gc() > 0; ]],1); test_any([[mapping m=([]); m[m]=m; gc(); m=0; return gc() > 0; ]],1);
test_any([[multiset m=(<>); m[m]=1; gc(); m=0; return gc() > 0; ]],1); test_any([[multiset m=(<>); m[m]=1; gc(); m=0; return gc() > 0; ]],1);
test_any([[gc();
int q=lambda() { mixed foo; foo=lambda() { return foo; }; return 1; }();
return gc()>0;
]],1)
test_any([[mapping q=([ "t":class {} ()]); gc(); if(!objectp(q->t)) return -1; set_weak_flag(q,1); gc(); if(objectp(q->t)) return -2; return 0;]],0); test_any([[mapping q=([ "t":class {} ()]); gc(); if(!objectp(q->t)) return -1; set_weak_flag(q,1); gc(); if(objectp(q->t)) return -2; return 0;]],0);
test_do([[class bar { object foo; void create(void|object tmp) { foo=tmp; } }; test_do([[class bar { object foo; void create(void|object tmp) { foo=tmp; } };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment