summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testDoubleZeroInSwitch2.js
blob: 504d1b76db489ccb6ef7d4d38bd40d3ea868c37a (plain)
1
2
3
4
5
6
7
8
9
var arr = new Float32Array(1);
arr[0] = 15;
var a = arr[0];
assertEq(a, 15);
switch (a) {
  case 15: break;
  default: throw "FAIL";
}