21 lines
346 B
Rust
21 lines
346 B
Rust
// xfail-stage0
|
|
impure fn main() -> () {
|
|
test05();
|
|
}
|
|
|
|
impure fn test05_start(chan[int] ch) {
|
|
ch <| 10;
|
|
ch <| 20;
|
|
ch <| 30;
|
|
}
|
|
|
|
impure 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;
|
|
check(value == 30);
|
|
}
|