3c09a26e16
Remove non-escaping Ref's on bytecode postprocessing pass.
12 lines
259 B
Kotlin
Vendored
12 lines
259 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
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 |