Skip to content

Commit 94ae459

Browse files
committed
if-check test case
1 parent 346f1a6 commit 94ae459

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// xfail-stage0
2+
fn foo(int x) -> () {
3+
if check even(x) {
4+
log x;
5+
}
6+
else {
7+
fail;
8+
}
9+
}
10+
11+
fn main() {
12+
foo(2);
13+
}

0 commit comments

Comments
 (0)