chromium/third_party/blink/web_tests/fast/js/regress/script-tests/constant-test.js

function foo(a, b, c) {
    return a * b / c + a - b * c / a % b + c;
}

var result = 0;

for (var i = 0; i < 1000000; ++i)
    result += foo(1.5, 2.4, 3.3);

if (result != 5410909.091033336)
    throw "Bad result: " + result;