about summary refs log tree commit diff
path: root/src/test/stdtest
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2011-10-19 14:47:50 -0700
committerBrian Anderson <banderson@mozilla.com>2011-10-24 16:06:16 -0700
commitd9b23cb0224efb7157d2888bdaef85edebf6dd08 (patch)
tree9b90f44fc8441a7dff8d2499dcda9f726f08b898 /src/test/stdtest
parent44697a4293ae083e57b49cc2afe6cf7fca71b10a (diff)
downloadrust-d9b23cb0224efb7157d2888bdaef85edebf6dd08.tar.gz
rust-d9b23cb0224efb7157d2888bdaef85edebf6dd08.zip
move comm functions out of rust abi
Diffstat (limited to 'src/test/stdtest')
-rw-r--r--src/test/stdtest/comm.rs17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/test/stdtest/comm.rs b/src/test/stdtest/comm.rs
index 9c31c5e6f72..bef5a3c4e5b 100644
--- a/src/test/stdtest/comm.rs
+++ b/src/test/stdtest/comm.rs
@@ -5,6 +5,13 @@ import std::comm;
 fn create_port_and_chan() { let p = comm::port::<int>(); comm::chan(p); }
 
 #[test]
+fn send_int() {
+    let p = comm::port::<int>();
+    let c = comm::chan(p);
+    comm::send(c, 22);
+}
+
+#[test]
 fn send_recv_fn() {
     let p = comm::port::<int>();
     let c = comm::chan::<int>(p);
@@ -21,9 +28,17 @@ fn send_recv_fn_infer() {
 }
 
 #[test]
-fn chan_chan() {
+fn chan_chan_infer() {
     let p = comm::port(), p2 = comm::port::<int>();
     let c = comm::chan(p);
     comm::send(c, comm::chan(p2));
     comm::recv(p);
 }
+
+#[test]
+fn chan_chan() {
+    let p = comm::port::<comm::chan<int>>(), p2 = comm::port::<int>();
+    let c = comm::chan(p);
+    comm::send(c, comm::chan(p2));
+    comm::recv(p);
+}