JVM_IR: Generate counter loop for reversed array (KT-22429)

This commit is contained in:
Xin Wang
2022-01-07 16:55:26 +08:00
committed by teamcity
parent cd957ae774
commit 60657022e0
4 changed files with 63 additions and 1 deletions
@@ -1234,6 +1234,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("reversedArray.kt")
public void testReversedArray() throws Exception {
runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedArray.kt");
}
@Test
@TestMetadata("reversedArrayOriginalUpdatedInLoopBody.kt")
public void testReversedArrayOriginalUpdatedInLoopBody() throws Exception {