Files
kotlin-fork/backend.native/tests/external/codegen/box/deadCodeElimination/emptyVariableRange.kt
T
2017-03-13 15:31:46 +03:00

15 lines
256 B
Kotlin

// WITH_RUNTIME
import kotlin.test.assertEquals
fun foo(): Int {
return 1
// val xyz has empty live range because everything after return will be removed as dead
val xyz = 1
}
fun box(): String {
assertEquals(1, foo())
return "OK"
}