summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1602190.js
blob: fbd2ed65518c1801a5543cdfd3ee8ed4f9db7269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function g(x) {
    var z = true;
    return (x ? 0.1 : (z ? Math.fround(1) : NaN));
}
function f() {
    var arr = [1];
    for (var i = 0; i < 550; ++i) {
        for (var j = 0; j < 2; ++j) {
            assertEq(g(arr[j]), j ? 1 : 0.1);
        }
    }
}
f();