blob: 2cb9264b2b1aa43e030dedf775ebbc1c636ae7e1 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(a, b, c) {
if (a + b < c)
return a - b + c;
else
return a + b - c;
}
for (var i = 0; i < 1000000; ++i) {
if (foo(1, 2, 3) != 0)
throw new "Result not zero";
}