aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/loops.js26
1 files changed, 25 insertions, 1 deletions
diff --git a/test/compress/loops.js b/test/compress/loops.js
index ca05461c..e26dc79f 100644
--- a/test/compress/loops.js
+++ b/test/compress/loops.js
@@ -213,6 +213,30 @@ evaluate: {
a();
for(;;)
c();
- d();
+ // rule disabled due to issue_1532
+ do d(); while (false);
+ }
+}
+
+issue_1532: {
+ options = {
+ evaluate: true,
+ loops: true,
+ }
+ input: {
+ function f(x, y) {
+ do {
+ if (x) break;
+ foo();
+ } while (false);
+ }
+ }
+ expect: {
+ function f(x, y) {
+ do {
+ if (x) break;
+ foo();
+ } while (false);
+ }
}
}