Files
kotlin/compiler/testData/codegen/bytecodeText/storeStackBeforeInline/primitiveMerge.kt
Natalia Ukhorskaya 8deef10292 Fix android tests
2014-10-29 17:31:14 +03:00

17 lines
286 B
Kotlin
Vendored

fun bar() : Boolean = true
fun foobar(x: Boolean, y: String, z: String) = x.toString() + y + z
inline fun foo() = "-"
fun test() {
val result = foobar(if (1 == 1) true else bar(), foo(), "OK")
}
// 1 ISTORE
// 3 ILOAD
// 2 ASTORE
// 7 ALOAD
// 3 MAXLOCALS = 3
// 0 InlineMarker