rust/src/test/run-pass/leaky_comm.rs

19 lines
255 B
Rust
Raw Normal View History

2012-06-12 21:02:24 -05:00
// xfail-fast
// aux-build:test_comm.rs
use test_comm;
fn main() {
let p = test_comm::port();
alt none::<int> {
none {}
some(_) {
if test_comm::recv(p) == 0 {
#error("floop");
}
else {
#error("bloop");
}
}}
}