aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-611.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/issue-611.js')
-rw-r--r--test/compress/issue-611.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compress/issue-611.js b/test/compress/issue-611.js
new file mode 100644
index 00000000..6f2c65d2
--- /dev/null
+++ b/test/compress/issue-611.js
@@ -0,0 +1,21 @@
+issue_611: {
+ options = {
+ sequences: true,
+ side_effects: true
+ };
+ input: {
+ define(function() {
+ function fn() {}
+ if (fn()) {
+ fn();
+ return void 0;
+ }
+ });
+ }
+ expect: {
+ define(function() {
+ function fn(){}
+ if (fn()) return void fn();
+ });
+ }
+}