blob: c6ac78b2637e44d848c55b30904771cc399c8bab [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function doTest(max) {
let sum = 0
for (let i=0; i<max; ++i) {
sum = sum + i * 304;
}
return sum
}
noInline(doTest);
for (let i=0; i<100000; ++i) doTest(10000)
if (doTest(10000) != 15198480000)
throw "Error: bad result: " + doTest(10000);