2011-08-31 06:22:58 -05:00
|
|
|
//xfail-test
|
2011-08-13 17:20:11 -05:00
|
|
|
|
|
|
|
use std;
|
2011-12-13 18:25:51 -06:00
|
|
|
import task;
|
2011-08-13 17:20:11 -05:00
|
|
|
|
|
|
|
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
|
|
|
}
|