about summary refs log tree commit diff
path: root/src/test/run-pass/pred.rs
blob: 212e77cbdc1c3708aa8b7daccb96cbd2dfe73800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// -*- rust -*-
fn f(a: int, b: int) { }

pure fn lt(a: int, b: int) -> bool { ret a < b; }

fn main() {
    let a: int = 10;
    let b: int = 23;
    let c: int = 77;
    check (lt(a, b));
    check (lt(a, c));
    f(a, b);
    f(a, c);
}