if-check test case

This commit is contained in:
Tim Chevalier 2011-06-15 16:23:17 -07:00
parent 346f1a6769
commit 94ae4590c5

View File

@ -0,0 +1,13 @@
// xfail-stage0
fn foo(int x) -> () {
if check even(x) {
log x;
}
else {
fail;
}
}
fn main() {
foo(2);
}