2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2011-03-25 14:19:20 -05:00
|
|
|
// xfail-stage0
|
2011-05-03 20:13:51 -05:00
|
|
|
// xfail-stage1
|
|
|
|
// xfail-stage2
|
2011-07-20 21:37:09 -05:00
|
|
|
// xfail-stage3
|
2010-06-23 23:03:09 -05:00
|
|
|
// -*- rust -*-
|
2010-06-26 01:57:30 -05:00
|
|
|
use std;
|
|
|
|
|
2011-07-26 07:49:40 -05:00
|
|
|
type cell = rec(mutable @list c);
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
tag list { link(@cell); nil; }
|
2010-06-23 23:03:09 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-07-26 07:49:40 -05:00
|
|
|
let @cell first = @rec(mutable c=@nil());
|
|
|
|
let @cell second = @rec(mutable c=@link(first));
|
2011-06-15 13:19:50 -05:00
|
|
|
first._0 = @link(second);
|
|
|
|
std::sys.rustrt.gc();
|
2011-07-26 07:49:40 -05:00
|
|
|
let @cell third = @rec(mutable c=@nil());
|
2011-06-15 13:19:50 -05:00
|
|
|
}
|