rust/src/test/run-pass/if-check.rs

13 lines
128 B
Rust
Raw Normal View History

2011-06-15 18:23:17 -05:00
// xfail-stage0
fn foo(int x) -> () {
if check even(x) {
log x;
}
else {
fail;
}
}
fn main() {
foo(2);
}