mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
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
11 lines
243 B
Kotlin
Vendored
11 lines
243 B
Kotlin
Vendored
fun runNoInline(f: () -> Unit) = f()
|
|
|
|
fun test() {
|
|
var x = 0
|
|
runNoInline { ++x }
|
|
}
|
|
|
|
// 1 NEW kotlin/jvm/internal/Ref\$IntRef
|
|
// 2 GETFIELD kotlin/jvm/internal/Ref\$IntRef\.element
|
|
// 2 PUTFIELD kotlin/jvm/internal/Ref\$IntRef\.element
|