ForLoopsLowering: Assume step == 1 for *Range (e.g., IntRange) and
handle accordingly (e.g., do not read `step` property).
This commit is contained in:
committed by
Alexander Udalov
parent
09e47fff7b
commit
2cfd776092
+10
@@ -2502,6 +2502,11 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepNonConstOnNonLiteralProgression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stepOnNonLiteralRange.kt")
|
||||
public void testStepOnNonLiteralRange() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepOnNonLiteralRange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stepOne.kt")
|
||||
public void testStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepOne.kt");
|
||||
@@ -2630,6 +2635,11 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepNonConstOnNonLiteralProgression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stepOnNonLiteralRange.kt")
|
||||
public void testStepOnNonLiteralRange() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepOnNonLiteralRange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stepThenDifferentStep.kt")
|
||||
public void testStepThenDifferentStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepThenDifferentStep.kt");
|
||||
|
||||
Reference in New Issue
Block a user