diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/loops.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/compress/loops.js b/test/compress/loops.js index cdf1f045..91aa1c5f 100644 --- a/test/compress/loops.js +++ b/test/compress/loops.js @@ -121,3 +121,27 @@ drop_if_else_break_4: { for (; bar() && (x(), y(), foo());) baz(), z(), k(); } } + +parse_do_while_with_semicolon: { + options = { loops: false }; + input: { + do { + x(); + } while (false);y() + } + expect: { + do x(); while (false);y(); + } +} + +parse_do_while_without_semicolon: { + options = { loops: false }; + input: { + do { + x(); + } while (false)y() + } + expect: { + do x(); while (false);y(); + } +}
\ No newline at end of file |