summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/unboxint.js
blob: 1aa43129742f2d8fc0ee6226f9334a5392842aa3 (plain)
1
2
3
4
5
6
7
8
function unboxint() {
    var q = 0;
    var o = [4];
    for (var i = 0; i < 100; ++i)
        q = o[0] << 1;
    return q;
}
assertEq(unboxint(), 8);