Skip to content
Snippets Groups Projects
Commit a1cf4758 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Added some tests to ensure that simple types aren't removed in weak

references.

Rev: src/testsuite.in:1.443
parent 88d5d585
No related branches found
No related tags found
No related merge requests found
test_true([["$Id: testsuite.in,v 1.442 2001/07/05 22:22:38 hubbe Exp $"]]);
test_true([["$Id: testsuite.in,v 1.443 2001/07/12 15:07:35 mast Exp $"]]);
cond([[all_constants()->_verify_internals]],
[[
......@@ -3134,6 +3134,21 @@ ifefun(gc,
return !sizeof (a);
}]], 1);
test_any_equal([[{
array a = set_weak_flag (({1, "foo", 3.14}), 1);
gc();
return a;
}]], ({1, "foo", 3.14}));
test_any_equal([[{
multiset a = set_weak_flag ((<1, "foo", 3.14>), 1);
gc();
return a;
}]], (<1, "foo", 3.14>));
test_any_equal([[{
mapping a = set_weak_flag (([1: 1, "foo": "foo", 3.14: 3.14]), 1);
gc();
return a;
}]], ([1: 1, "foo": "foo", 3.14: 3.14]));
]])
ifefun(gc,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment