fix KT-5645: 'continue' inside 'do...while' statement works as goto to the beginning of the loop (not checking loop condition)

#KT-5645 Fixed
This commit is contained in:
Michael Nedzelsky
2014-08-26 16:47:22 +04:00
committed by Svetlana Isakova
parent 3d7c22f242
commit 25a0854dbd
7 changed files with 60 additions and 6 deletions
@@ -1468,6 +1468,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/controlStructures/doWhileFib.kt");
}
@TestMetadata("doWhileWithContinue.kt")
public void testDoWhileWithContinue() throws Exception {
doTest("compiler/testData/codegen/box/controlStructures/doWhileWithContinue.kt");
}
@TestMetadata("emptyDoWhile.kt")
public void testEmptyDoWhile() throws Exception {
doTest("compiler/testData/codegen/box/controlStructures/emptyDoWhile.kt");