[JVM IR] Support break in do-while condition.
This breaks from the loop itself which is inconsistent with what happens for breaks in while conditions. Also, the frontend will report that code after the loop is unreachable, which it isn't. :-\ However, those issues are covered in https://youtrack.jetbrains.com/issue/KT-17728, so for now we follow the old backend to not "break" anyone. :) Fixes KT-44412
This commit is contained in:
+5
@@ -6036,6 +6036,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class BreakContinueInExpressions extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("breakInLoopConditions.kt")
|
||||
public void ignoreBreakInLoopConditions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakInLoopConditions.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user