aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-11-30 11:26:37 +0200
committerMihai Bazon <mihai@bazon.net>2012-11-30 11:26:37 +0200
commitb5c3253b493b9e2428d5702169e5687f42fc6213 (patch)
tree8be23ec46ffc97dc0072a7b65484dc64ac51eee6 /test
parent5cc90db7d0c8983b6cae38df9dca540acbc1481b (diff)
downloadtracifyjs-b5c3253b493b9e2428d5702169e5687f42fc6213.tar.gz
tracifyjs-b5c3253b493b9e2428d5702169e5687f42fc6213.zip
Add test for issue #59
Diffstat (limited to 'test')
-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();
+ }
+ }
+}