summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug848733.js
blob: 68d0cde4600e0ac3d6d73db0bbca8be77ef7a875 (plain)
1
2
3
4
5
6
7
8
9
10
11
var a = [1];
function f(x) {
    var round = Math.round;
    for (var i=0; i<20; i++) {
	a[0] = round(a[0]);
	if (x > 500)
	    a[0] = "a";
    }
}
for (var i=0; i<550; i++)
    f(i);