aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-59.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/issue-59.js')
-rw-r--r--test/compress/issue-59.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/compress/issue-59.js b/test/compress/issue-59.js
new file mode 100644
index 00000000..82b38806
--- /dev/null
+++ b/test/compress/issue-59.js
@@ -0,0 +1,30 @@
+keep_continue: {
+ options = {
+ dead_code: true,
+ evaluate: true
+ };
+ input: {
+ while (a) {
+ if (b) {
+ switch (true) {
+ case c():
+ d();
+ }
+ continue;
+ }
+ f();
+ }
+ }
+ expect: {
+ while (a) {
+ if (b) {
+ switch (true) {
+ case c():
+ d();
+ }
+ continue;
+ }
+ f();
+ }
+ }
+}