f32367d2c2
The previous one was incorrect for K1 since parent of top-level function is `IrClass`, not `IrPackageFragment`. The change is non-functional, K1 still worked correctly, but had to do some extra work when inlining `emptyArray` calls and produces less performant bytecode.
12 lines
189 B
Kotlin
Vendored
12 lines
189 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// TARGET_BACKEND: JVM_IR
|
|
|
|
// Checks if emptyArray call has been lowered
|
|
|
|
fun box(): String {
|
|
emptyArray<String>()
|
|
return "OK"
|
|
}
|
|
|
|
// CHECK_BYTECODE_TEXT
|
|
// 0 ISTORE 0 |