aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/task-comm-4.rs
blob: 42ba699236425288e730a6d5477759f2734b0e3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
io fn main() -> () {
   test00();
}

io fn test00() {
    let port[int] p = port();
    let chan[int] c = chan(p);
    c <| 42;
    let int r <- p;
}