aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/task-comm-11.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/task-comm-11.rs')
-rw-r--r--src/test/run-pass/task-comm-11.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-pass/task-comm-11.rs b/src/test/run-pass/task-comm-11.rs
new file mode 100644
index 00000000..519eb699
--- /dev/null
+++ b/src/test/run-pass/task-comm-11.rs
@@ -0,0 +1,10 @@
+io fn start(chan[chan[str]] c) {
+ let port[str] p = port();
+ c <| chan(p);
+}
+
+io fn main() {
+ let port[chan[str]] p = port();
+ auto child = spawn "child" start(chan(p));
+ auto c <- p;
+} \ No newline at end of file