if-check test case
This commit is contained in:
parent
346f1a6769
commit
94ae4590c5
13
src/test/run-pass/if-check.rs
Normal file
13
src/test/run-pass/if-check.rs
Normal file
@ -0,0 +1,13 @@
|
||||
// xfail-stage0
|
||||
fn foo(int x) -> () {
|
||||
if check even(x) {
|
||||
log x;
|
||||
}
|
||||
else {
|
||||
fail;
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
foo(2);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user