From 7ea416f4c33631d76fd5b12830c0d326803061c1 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 25 Jun 2010 23:57:30 -0700 Subject: Add callable gc method exposed to user code, use it in mlist-cycle.rs test (still not quite working; some memory corruption in the recursive tag constructors, not the GC) --- src/test/run-pass/mlist-cycle.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/test') diff --git a/src/test/run-pass/mlist-cycle.rs b/src/test/run-pass/mlist-cycle.rs index 2a371317..313455f8 100644 --- a/src/test/run-pass/mlist-cycle.rs +++ b/src/test/run-pass/mlist-cycle.rs @@ -1,5 +1,7 @@ // -*- rust -*- +use std; + type cell = tup(mutable @list); type list = tag(link(@cell), nil()); @@ -7,4 +9,6 @@ fn main() { let @cell first = tup(@nil()); let @cell second = tup(@link(first)); first._0 = link(second); + std.sys.rustrt.gc(); + let @cell third = tup(@nil()); } -- cgit v1.2.3