blob: a30cd715dfd4ea7ba74915904532bd8778e287ee [file] [log] [blame]
function foo(a, b) {
return a << b;
}
noInline(foo);
var things = [{valueOf: function() { return 4; }}];
var results = [8];
for (var i = 0; i < 100000; ++i) {
var result = foo(things[i % things.length], 1);
var expected = results[i % results.length];
if (result != expected)
throw "Error: bad result for i = " + i + ": " + result;
}