aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/reduce_vars.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index 53e28152..10dc9d98 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -1122,3 +1122,25 @@ defun_label: {
}();
}
}
+
+double_reference: {
+ options = {
+ reduce_vars: true,
+ unused: true,
+ }
+ input: {
+ function f() {
+ var g = function g() {
+ g();
+ };
+ g();
+ }
+ }
+ expect: {
+ function f() {
+ (function g() {
+ g();
+ })();
+ }
+ }
+}