summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1062612.js
blob: 3df1d1ed68b9e563ad29612585d7790c584f431c (plain)
1
2
3
4
5
6
7
x = [0, 1, 1, 0, 1, 1];
y = -1;
sum = 0;
for (var j = 0; j < x.length; ++j) {
    sum = sum + (x[j] ? 0 : (y >>> 0)) | 0;
}
assertEq(sum, -2);