[K/N] Fix cleaning stack-local primitive array
^KT-55984
This commit is contained in:
committed by
Space Team
parent
9f850c1179
commit
2843c0ad1e
+6
@@ -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
@@ -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"
|
||||
}
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user