summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug619433-2.js
blob: 947557da374225c2dc61d475efa03ba8defb5367 (plain)
1
2
3
4
5
6
7
8
9
10

function foo(x) {
  var y = 2.5;
  y = -x;
  var z = [1,2,y];
  return x + 5;
}
for (var i = 0; i < 20; i++)
  foo(i);
assertEq(foo(20), 25);