summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testDecayingInnerLoop.js
blob: 92e985cd6c878414862ccfeae9f3567a7cef12f5 (plain)
1
2
3
4
5
6
7
8
9
function testDecayingInnerLoop() {
    var i, j, k = 10;
    for (i = 0; i < 5000; ++i) {
        for (j = 0; j < k; ++j);
            --k;
    }
    return i;
}
assertEq(testDecayingInnerLoop(), 5000);