aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/ie8.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/ie8.js b/test/compress/ie8.js
index 1a840262..f8ce35dc 100644
--- a/test/compress/ie8.js
+++ b/test/compress/ie8.js
@@ -2339,3 +2339,25 @@ issue_3523_rename_ie8_toplevel: {
}
expect_stdout: "PASS"
}
+
+issue_3542: {
+ options = {
+ ie8: true,
+ reduce_vars: true,
+ toplevel: true,
+ unused: true,
+ }
+ input: {
+ var a = 0;
+ var b = a++;
+ var c = b && function a() {} || b;
+ console.log(a);
+ }
+ expect: {
+ var a = 0;
+ a++;
+ (function a() {});
+ console.log(a);
+ }
+ expect_stdout: "1"
+}