summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug724562.js
blob: b59c9917e7cbe955907fca6b20c69ffb57a53cc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function fannkuch(n) {
    var perm1 = Array(n);
    for (var i = 0; i < n; i++) { };
    var r = n;
    do {
        while (r != 1) { r--; }
        for (var z=0; z<50; z++) {
            while (i < r) {
                perm1[i];
                i++;
            }
        }
    } while(false);
}
fannkuch(18);