aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/task-comm-0.rs
blob: 5992ba5cf6fb4f0f1fe57bc90c4e2d63e67b9afb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
io fn main() -> () {
    test05();
}

io fn test05_start(chan[int] ch) {
    ch <| 10;
    ch <| 20;
    ch <| 30;
}

io 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;
    log value;
}