summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/testShiftSameBacking.js
blob: 1cbe064d3fef2cf317d1c0768685d3ca1f3b6d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// vim: set ts=8 sts=4 et sw=4 tw=99:

function f(a) {
    var x = a;
    var y = x;

    assertEq((x << y), (a << a));
    assertEq((y << x), (a << a));
}

f(2);