Add test for local declarations with receive. XFAIL in rustc.

This commit is contained in:
Brian Anderson 2011-03-24 20:50:05 -04:00 committed by Graydon Hoare
parent 77a3373d53
commit ef1bcdea70
2 changed files with 15 additions and 0 deletions

View File

@ -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 \

View File

@ -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);
}