diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/functions.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js index 7a336bb8..15727fc2 100644 --- a/test/compress/functions.js +++ b/test/compress/functions.js @@ -652,3 +652,23 @@ issue_2531_3: { } expect_stdout: "Greeting: Hello" } + +empty_body: { + options = { + reduce_vars: true, + side_effects: true, + } + input: { + function f() { + function noop() {} + noop(); + return noop; + } + } + expect: { + function f() { + function noop() {} + return noop; + } + } +} |