[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
+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"
}