2012-06-12 21:02:24 -05:00
|
|
|
// xfail-fast
|
2012-06-12 18:41:11 -05:00
|
|
|
// 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 {
|
2012-07-30 18:01:07 -05:00
|
|
|
error!{"floop"};
|
2012-06-12 18:41:11 -05:00
|
|
|
}
|
|
|
|
else {
|
2012-07-30 18:01:07 -05:00
|
|
|
error!{"bloop"};
|
2012-06-12 18:41:11 -05:00
|
|
|
}
|
|
|
|
}}
|
|
|
|
}
|