summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug701956.js
blob: f073e17f9b3f26b019df6b23ae966b49e2b630ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function test() {
    function f(arr, i) {
        arr[3] |= i;
    }

    var a = [1, 2, 3, 4, 5];

    for (var i=0; i<100; i++) {
        f(a, i * 2);
    }
    assertEq(a[3], 254);
}
test();