Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
box
/
deadCodeElimination
/
emptyVariableRange.kt
blob: 88d8c8863144c333d9fbd96055ad3e7affa0d823 [
file
] [
log
] [
blame
]
// WITH_STDLIB
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"
}