Files
kotlin/compiler/testData/codegen/bytecodeText/inlineClasses/noBoxingOperationsOnNonTrivialSpread.kt
Alexander Udalov f5ff3d2fa9 Remove directives that have no effect from bytecode text tests
All bytecode text tests are run with stdlib in the classpath and only
for JVM backend, therefore directives WITH_RUNTIME, TARGET_BACKEND,
IGNORE_BACKEND are not needed
2018-12-20 12:53:24 +01:00

25 lines
499 B
Kotlin
Vendored

fun uint(vararg us: UInt): UIntArray = us
// FILE: NoBoxing.kt
fun test1(us: UIntArray) {
uint(1u, *us, 2u, *us)
}
// @NoBoxingKt.class:
// 0 INVOKESTATIC kotlin.UInt\$Erased.box
// 0 INVOKESTATIC kotlin.UInt\.box
// 0 INVOKEVIRTUAL kotlin.UInt.unbox
// FILE: Boxing.kt
fun nullableUInt(vararg us: UInt?) {}
fun test2(nullable: UInt?, ns: Array<UInt>) {
nullableUInt(1u, nullable, 3u, *ns)
}
// @BoxingKt.class:
// 2 INVOKESTATIC kotlin.UInt\.box
// 0 INVOKEVIRTUAL kotlin.UInt.unbox