Files
kotlin/compiler/testData/codegen/bytecodeText/deadCodeElimination/literal.kt
2018-12-21 16:20:45 +01:00

14 lines
182 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
fun box() {
val x: Any? = "abc"
val y: Any? = if (1 == 1) x else "cde"
x!!
y!!
}
// 0 IFNULL
// 0 IFNONNULL
// 0 throwNpe
// 0 ATHROW