aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in1
-rw-r--r--src/test/run-pass/decl-with-recv.rs14
2 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index e2cf9f34..d8ad9ea7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -653,6 +653,7 @@ TEST_XFAILS_STAGE0 := $(FLOAT_XFAILS) \
clone-with-exterior.rs \
comm.rs \
constrained-type.rs \
+ decl-with-recv.rs \
destructor-ordering.rs \
iter-ret.rs \
lazychan.rs \
diff --git a/src/test/run-pass/decl-with-recv.rs b/src/test/run-pass/decl-with-recv.rs
new file mode 100644
index 00000000..7698ee01
--- /dev/null
+++ b/src/test/run-pass/decl-with-recv.rs
@@ -0,0 +1,14 @@
+// -*- rust -*-
+
+impure fn main() {
+ let port[int] po = port();
+ let chan[int] ch = chan(po);
+
+ ch <| 10;
+ let int i <- po;
+ check (i == 10);
+
+ ch <| 11;
+ auto j <- po;
+ check (j == 11);
+}