summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1085298.js
blob: 2cac7298f978d8464de885242abdf72b6a18867e (plain)
1
2
3
4
5
6
7
function f(x, y) {
        return (y | 0 && x ? y | 0 : 0)
}
m = [1]
assertEq(f(m[0], m[0]), 1)
assertEq(f(m[1], m[0]), 0)
assertEq(f(m[2], m[0]), 0)