提交 ef1bcdea 编写于 作者: B Brian Anderson 提交者: Graydon Hoare

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

上级 77a3373d
......@@ -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 \
......
// -*- 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);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册