diff options
Diffstat (limited to 'test/compress/conditionals.js')
-rw-r--r-- | test/compress/conditionals.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/compress/conditionals.js b/test/compress/conditionals.js index 594d956d..27536b9f 100644 --- a/test/compress/conditionals.js +++ b/test/compress/conditionals.js @@ -161,6 +161,24 @@ ifs_6: { } } +ifs_7: { + options = { + conditionals: true, + } + input: { + if (A); else; + if (A) while (B); else; + if (A); else while (C); + if (A) while (B); else while (C); + } + expect: { + A; + if (A) while (B); + if (!A) while (C); + if (A) while (B); else while (C); + } +} + cond_1: { options = { conditionals: true, |