if-check test case
This commit is contained in:
parent
346f1a6769
commit
94ae4590c5
1 changed files with 13 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue