blob: 0ed7462a432327bd238d39e93b38f85346915463 [file] [log] [blame]
function foo(a) {
a[42] = 95010;
}
noInline(foo);
function test(length, expected) {
var a = new Int16Array(length);
foo(a);
var result = a[42];
if (result != expected)
throw "Error: bad value at a[42]: " + result;
}
for (var i = 0; i < 100000; ++i)
test(100, 29474);
test(10, void 0);