summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1721006.js
blob: 1f482861757827cf7892c671d62433b29bdefe47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| --no-threads; --baseline-warmup-threshold=10; --ion-warmup-threshold=100

function foo() {
    let x = 1;
    let y = 1;
    let z = 1;
    for (let i = 0; i < 4; i++) {}
    for (let i = 0; i < 1000; i++) {
        y &= x;
        for (let j = 0; j < 100; j++) {}
        x = z;
        for (let j = 0; j < 8; j++) {}
    }
}
foo();