diff options
Diffstat (limited to 'test/compress/pure_funcs.js')
-rw-r--r-- | test/compress/pure_funcs.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/compress/pure_funcs.js b/test/compress/pure_funcs.js index 56c36dd7..48140dd6 100644 --- a/test/compress/pure_funcs.js +++ b/test/compress/pure_funcs.js @@ -642,3 +642,41 @@ issue_3065_4: { })(); } } + +issue_3325_1: { + options = { + pure_funcs: "cb", + side_effects: true, + } + input: { + function cb() { + console.log("PASS"); + } + cb(); + } + expect: { + function cb() { + console.log("PASS"); + } + } +} + +issue_3325_2: { + options = { + pure_funcs: "xxxcbxxx", + side_effects: true, + } + input: { + function cb() { + console.log("PASS"); + } + cb(); + } + expect: { + function cb() { + console.log("PASS"); + } + cb(); + } + expect_stdout: "PASS" +} |