aboutsummaryrefslogtreecommitdiff
path: root/tests/binop.amal
blob: 1ec826d1cf4d276bd9adcc61fb11d395403a8683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern const printf: fn(fmt: ?&c_char, ...) c_int;

const main = fn {
    var value = 23 + 50;
    if value < 23
        printf("less!\n");
    else
        printf("more!\n");
    
    while value >= 0 {
        printf("value: %ld\n", value);
        value = value - 1;
    }
}