2011-08-13 17:20:11 -05:00
|
|
|
//xfail-stage0
|
2011-08-31 07:24:08 -05:00
|
|
|
//xfail-stage1
|
|
|
|
//xfail-stage2
|
|
|
|
//xfail-stage3
|
2011-08-13 17:20:11 -05:00
|
|
|
|
|
|
|
use std;
|
|
|
|
import std::task;
|
|
|
|
|
|
|
|
fn f(x : @{a:int, b:int}) {
|
|
|
|
assert (x.a == 10);
|
|
|
|
assert (x.b == 12);
|
2011-07-27 07:48:34 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2011-08-13 17:20:11 -05:00
|
|
|
let z : @{a:int, b:int} = @{ a : 10, b : 12};
|
|
|
|
let p = task::_spawn(bind f(z));
|
|
|
|
task::join_id(p);
|
2011-07-27 07:48:34 -05:00
|
|
|
}
|