summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-993768.js
blob: 2fc05fb5b88e16d51f1240cb23a9477ceb4ec5d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var SECTION = "";
gcPreserveCode()
gczeal(9, 1000);
function test() {
    var f32 = new Float32Array(10);
    f32[0] = 5;
    var i = 0;
    for (var j = 0; j < 10000; ++j) {
        f32[i + 1] = f32[i] - 1;
        SECTION += 1;
    }
} 
test();