rust/src/test/run-pass/pred.rs

18 lines
248 B
Rust
Raw Normal View History

// xfail-stage0
2010-06-23 23:03:09 -05:00
// -*- rust -*-
fn f(int a, int b) { }
2010-06-23 23:03:09 -05:00
pred lt(int a, int b) -> bool { ret a < b; }
2010-06-23 23:03:09 -05:00
fn main() {
let int a = 10;
let int b = 23;
let int c = 77;
check (lt(a, b));
check (lt(a, c));
f(a, b);
f(a, c);
}