summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug-917585-relax-aliasing-constraints.js
blob: 03f77d7a7fb9ce9761cba7c0fe121b9eafe4503e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

function foo(a, b) {
    blah(function (x) { a = x; }, b);
    return arguments[0];
}

function blah(f, b) {
    f(b);
}

function main() {
    for (var i = 0; i < 1500; i++) {
        var x = foo(i, i*2);
        assertEq(x, i*2);
    }
}

main();