summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/inner_double_outer_int.js
blob: 4051aa21aab89bdc47ecd4346666741d20914623 (plain)
1
2
3
4
5
6
7
8
9
10
function inner_double_outer_int() {
    function f(i) {
        for (var m = 0; m < 20; ++m)
            for (var n = 0; n < 100; n += i)
                ;
        return n;
    }
    return f(.5);
}
assertEq(inner_double_outer_int(), 100);