blob: b1aba2be461b1854b9852ddabc2168a60fe9deec [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function bar(x)
{
"use strict";
var result = 0;
for (var i = 0; i < arguments.length; ++i)
result += arguments[i];
return result;
}
var result = 0;
for (var i = 0; i < 100000; ++i)
result += bar(i, i + 1, i + 2, i + 3);
if (result != 20000400000)
throw "Bad result: " + result;