summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/popn.js
blob: 06e2f5fb85d216091330b01b1ccc943e22b7e854 (plain)
1
2
3
4
5
6
7
8
9
10
11
function f() {
    var t = 0;
    for (var j = 0; j < 10; j++) {
	for (var i = 0; i < 9; ++i) {
            var [r, g, b] = [1, i, -10];
            t += r + g + b;
	}
    }
    return t;
}
assertEq(f(), -450);