summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug716504.js
blob: dff77c693238e63538296df95c50c7006231e3c3 (plain)
1
2
3
4
5
6
7
8
9
10
function f(x, from, to) {
    var y = 0;
    for (var i=from; i<to; i++) {
        y = i * x;
    }
    return y;
}

assertEq(f(0, 0, 200), 0);
assertEq(f(0, -10, -5), -0);