rust/src/test/run-pass/mlist-cycle.rs
Marijn Haverbeke a3ec0b1f64 Rename std modules to be camelcased
(Have fun mergining your stuff with this.)
2011-05-06 22:51:19 +02:00

22 lines
357 B
Rust

// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
// -*- rust -*-
use std;
type cell = tup(mutable @list);
tag list {
link(@cell);
nil();
}
fn main() {
let @cell first = @tup(mutable @nil());
let @cell second = @tup(mutable @link(first));
first._0 = @link(second);
std.Sys.rustrt.gc();
let @cell third = @tup(mutable @nil());
}