2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-25 14:19:20 -05:00
|
|
|
// xfail-stage0
|
2010-06-23 23:03:09 -05:00
|
|
|
// -*- rust -*-
|
2011-06-15 13:19:50 -05:00
|
|
|
fn f(int a, int b) { }
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
pred lt(int a, int b) -> bool { ret a < b; }
|
2010-06-23 23:03:09 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-06-15 13:19:50 -05:00
|
|
|
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);
|
|
|
|
}
|