2011-03-25 14:19:20 -05:00
|
|
|
// xfail-stage0
|
2011-05-03 20:13:51 -05:00
|
|
|
// xfail-stage1
|
|
|
|
// xfail-stage2
|
2010-06-23 23:03:09 -05:00
|
|
|
fn f(@rec(int a, int b) x) {
|
2011-05-02 19:47:24 -05:00
|
|
|
assert (x.a == 10);
|
|
|
|
assert (x.b == 12);
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let @rec(int a, int b) z = rec(a=10, b=12);
|
|
|
|
let task p = spawn thread f(z);
|
|
|
|
join p;
|
|
|
|
}
|