summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/gvn-unremovable-phi-bug1317675.js
blob: 99d74fc13e8ecd200b3c95dfcb7e6954c04d8fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| error: InternalError: too much recursion

function f() {
    var phi1 = 0;
    var phi2 = 0;
    while (true) {
        if (!phi2) {
            var add = phi1 + 1;
            f(add);
            if (!phi2)
                return;
            phi1 = 1;
            phi2 = 0;
        }
    }
}

f(0);