blob: d66f365b1bd3ecd1495cfe05f2b110a3ecff917d [file] [log] [blame]
function bar() {
return arguments;
}
function foo() {
var a = bar(1, 2, 3);
var b = bar(4, 5, 6);
return (a[0] << 0) + (a[1] << 1) + (a[2] << 2) + (b[0] << 3) + (b[1] << 4) + (b[2] << 5);
}
noInline(foo);
for (var i = 0; i < 20000; ++i) {
var result = foo();
if (result != (1 << 0) + (2 << 1) + (3 << 2) + (4 << 3) + (5 << 4) + (6 << 5))
throw "Error: bad result: " + result;
}