[K/N] Fix cleaning stack-local primitive array

^KT-55984
This commit is contained in:
Pavel Kunyavskiy
2023-01-17 17:03:25 +01:00
committed by Space Team
parent 9f850c1179
commit 2843c0ad1e
16 changed files with 142 additions and 35 deletions
@@ -1173,6 +1173,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/arrays/kt503.kt");
}
@Test
@TestMetadata("kt55984.kt")
public void testKt55984() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt55984.kt");
}
@Test
@TestMetadata("kt594.kt")
public void testKt594() throws Exception {
+10
View File
@@ -0,0 +1,10 @@
// WITH_STDLIB
fun box() : String{
for (iter in 0 until 10) {
val destination = ByteArray(8)
if (destination[0] != 0.toByte()) return "FAIL"
destination[0] = 1
}
return "OK"
}
@@ -1065,6 +1065,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/arrays/kt503.kt");
}
@Test
@TestMetadata("kt55984.kt")
public void testKt55984() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt55984.kt");
}
@Test
@TestMetadata("kt594.kt")
public void testKt594() throws Exception {
@@ -1173,6 +1173,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/arrays/kt503.kt");
}
@Test
@TestMetadata("kt55984.kt")
public void testKt55984() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt55984.kt");
}
@Test
@TestMetadata("kt594.kt")
public void testKt594() throws Exception {
@@ -934,6 +934,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/arrays/kt503.kt");
}
@TestMetadata("kt55984.kt")
public void testKt55984() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt55984.kt");
}
@TestMetadata("kt594.kt")
public void testKt594() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt594.kt");