blob: 03b530518ed358e7831ed0e53d02dc0863b0beae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// |jit-test| --fast-warmup; --no-threads
function foo() {}
function main() {
let value = 0.1;
let result;
foo();
const neverTrue = false;
for (let i = 0; i < 100; i++) {
let f32 = Math.fround(i) && 0;
result = neverTrue ? f32 : value;
}
return result;
}
assertEq(main(), 0.1);
|