summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/innerLoopIntOuterDouble.js
blob: be820f956dbe6eb091d1cdb385580de703a99f6d (plain)
1
2
3
4
5
6
7
8
9
10
11
function innerLoopIntOuterDouble() {
    var n = 1000, i=0, j=0, count=0, limit=0;
    for (i = 1; i <= n; ++i) {
        limit = i * 1;
        for (j = 0; j < limit; ++j) {
            ++count;
        }
    }
    return "" + count;
}
assertEq(innerLoopIntOuterDouble(), "500500");