mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
The number of initializations of the `value` field before the live range begins does not really matter so long as we insert a write of a default value to the local if there were none.
13 lines
208 B
Kotlin
Vendored
13 lines
208 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// TODO: JVM_IR uses ObjectRef instead of IntRef for the value
|
|
|
|
fun test(): UInt {
|
|
val c: UInt
|
|
run {
|
|
c = 1u
|
|
}
|
|
return c
|
|
}
|
|
|
|
// 2 ISTORE 0
|
|
// 1 LOCALVARIABLE c I |