mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +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
14 lines
282 B
Kotlin
Vendored
14 lines
282 B
Kotlin
Vendored
fun test() {
|
|
var x = 0
|
|
run {
|
|
val obj = object {
|
|
fun foo() { ++x }
|
|
}
|
|
obj.foo()
|
|
}
|
|
}
|
|
|
|
// 1 NEW kotlin/jvm/internal/Ref\$IntRef
|
|
// 2 GETFIELD kotlin/jvm/internal/Ref\$IntRef\.element
|
|
// 2 PUTFIELD kotlin/jvm/internal/Ref\$IntRef\.element
|