Add tests

This commit is contained in:
Anthony Van de Gejuchte
2015-12-18 14:39:48 +01:00
parent bd99b00413
commit 5cd26c005b

View File

@@ -121,3 +121,25 @@ drop_if_else_break_4: {
for (; bar() && (x(), y(), foo());) baz(), z(), k();
}
}
parse_do_while_with_semicolon: {
input: {
do {
x();
} while (false);y()
}
expect: {
do x(); while (false);y();
}
}
parse_do_while_without_semicolon: {
input: {
do {
x();
} while (false)y()
}
expect: {
do x(); while (false);y();
}
}