summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bitwiseAnd.js
blob: dc9fafa4ffebba6831f6c13980476c6b7b6ddac4 (plain)
1
2
3
4
5
6
7
8
9
10
function bitwiseAnd_inner(bitwiseAndValue) {
  for (var i = 0; i < 60000; i++)
    bitwiseAndValue = bitwiseAndValue & i;
  return bitwiseAndValue;
}
function bitwiseAnd()
{
  return bitwiseAnd_inner(12341234);
}
assertEq(bitwiseAnd(), 0);