diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/switch.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compress/switch.js b/test/compress/switch.js index c3e76302..9f9d3568 100644 --- a/test/compress/switch.js +++ b/test/compress/switch.js @@ -593,3 +593,24 @@ if_switch_typeof: { a; } } + +issue_1698: { + options = { + side_effects: true, + } + input: { + var a = 1; + !function() { + switch (a++) {} + }(); + console.log(a); + } + expect: { + var a = 1; + !function() { + switch (a++) {} + }(); + console.log(a); + } + expect_stdout: "2" +} |