aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-1656.js
blob: 146ec609fc024dbfa8792a816c7b33e6b09683f8 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
f7: {
    options = {
        booleans: true,
        collapse_vars: true,
        comparisons: true,
        conditionals: true,
        dead_code: true,
        drop_debugger: true,
        evaluate: true,
        hoist_funs: true,
        if_return: true,
        join_vars: true,
        loops: true,
        negate_iife: true,
        passes: 3,
        properties: true,
        reduce_funcs: true,
        reduce_vars: true,
        sequences: true,
        side_effects: true,
        toplevel: true,
        unused: true,
    }
    beautify = {
        beautify: true,
    }
    input: {
        var a = 100, b = 10;
        function f22464() {
            var brake146670 = 5;
            while (((b = a) ? !a : ~a ? null : b += a) && --brake146670 > 0) {
            }
        }
        f22464();
        console.log(a, b);
    }
    expect_exact: [
        "console.log(100, 100);",
    ]
    expect_stdout: "100 100"
}