aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/exports.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/compress/exports.js b/test/compress/exports.js
index 33059bca..0fdf6412 100644
--- a/test/compress/exports.js
+++ b/test/compress/exports.js
@@ -464,3 +464,17 @@ issue_4761: {
}
expect_exact: 'export default"function"==42;'
}
+
+issue_4766: {
+ options = {
+ unused: true,
+ }
+ input: {
+ var a = "foo";
+ export var a = "bar";
+ }
+ expect: {
+ var a = "foo";
+ export var a = "bar";
+ }
+}