aboutsummaryrefslogtreecommitdiff
path: root/test/compress/switch.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/switch.js')
-rw-r--r--test/compress/switch.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/compress/switch.js b/test/compress/switch.js
index 2025d91b..654a838b 100644
--- a/test/compress/switch.js
+++ b/test/compress/switch.js
@@ -553,3 +553,29 @@ issue_1680_2: {
}
expect_stdout: true
}
+
+issue_1690_1: {
+ options = {
+ dead_code: true,
+ }
+ input: {
+ switch (console.log("PASS")) {}
+ }
+ expect: {
+ console.log("PASS");
+ }
+ expect_stdout: "PASS"
+}
+
+issue_1690_2: {
+ options = {
+ dead_code: false,
+ }
+ input: {
+ switch (console.log("PASS")) {}
+ }
+ expect: {
+ switch (console.log("PASS")) {}
+ }
+ expect_stdout: "PASS"
+}