summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug677774-1.js
blob: 412060be52d302e4ee27f10552a82eae9650928b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function min(a, b) {

    if (a < b) {
        return a;
    }
    else {
        return b;
    }
}

assertEq(min(6, 5), 5);
assertEq(min(42, 1337), 42);
assertEq(min(-12, 6), -12)
assertEq(min(5, -6), -6)
assertEq(min(-3, -2), -3)
assertEq(min(-5, -6), -6)