23 lines
359 B
Rust
23 lines
359 B
Rust
// xfail-stage0
|
|
// xfail-stage1
|
|
// xfail-stage2
|
|
fn main() -> () {
|
|
test05();
|
|
}
|
|
|
|
fn test05_start(chan[int] ch) {
|
|
ch <| 10;
|
|
ch <| 20;
|
|
ch <| 30;
|
|
}
|
|
|
|
fn test05() {
|
|
let port[int] po = port();
|
|
let chan[int] ch = chan(po);
|
|
spawn test05_start(chan(po));
|
|
let int value <- po;
|
|
value <- po;
|
|
value <- po;
|
|
assert (value == 30);
|
|
}
|