summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/nestedExitLoop.js
blob: fffc8573bd5bf76fb28c74ebf860419e95f02f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function nestedExit(x) {
    var q = 0;
    for (var i = 0; i < 10; ++i)
    {
        if (x)
            ++q;
    }
}
function nestedExitLoop() {
    for (var j = 0; j < 10; ++j)
        nestedExit(j < 7);
    return "ok";
}
assertEq(nestedExitLoop(), "ok");