summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1738676.js
blob: 0d9e8fa568428df1e881296ba78cfc14838daac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function verify(n) {
  with ({}) {}
  assertEq(n, -0);
}

function main() {
  let x;
  let arr = [];

  let i = 0;
  do {
    x = (256 - i) * 0;
    arr[x] = 0;
    i++
  } while (i < 512);
  verify(x);
}

main();