2010-06-23 21:03:09 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2010-06-25 23:57:30 -07:00
|
|
|
use std;
|
|
|
|
|
2010-06-24 18:25:10 -07:00
|
|
|
type cell = tup(mutable @list);
|
|
|
|
type list = tag(link(@cell), nil());
|
2010-06-23 21:03:09 -07:00
|
|
|
|
|
|
|
fn main() {
|
2010-06-24 18:25:10 -07:00
|
|
|
let @cell first = tup(@nil());
|
|
|
|
let @cell second = tup(@link(first));
|
|
|
|
first._0 = link(second);
|
2010-06-25 23:57:30 -07:00
|
|
|
std.sys.rustrt.gc();
|
|
|
|
let @cell third = tup(@nil());
|
2010-06-23 21:03:09 -07:00
|
|
|
}
|