]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/comm.rs
Populate tree.
[rust.git] / src / test / run-pass / comm.rs
1 // -*- rust -*-
2
3 io fn main() {
4   let port[int] p = port();
5   spawn child(chan(p));
6   let int y;
7   y <- p;
8   log "received";
9   log y;
10   check (y == 10);
11 }
12
13 io fn child(chan[int] c) {
14   c <| 10;
15 }
16