Files
kotlin/compiler/testData/codegen/bytecodeText/nullCheckOptimization/ifNullEqualsNull.kt
Alexander Udalov f5ff3d2fa9 Remove directives that have no effect from bytecode text tests
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
2018-12-20 12:53:24 +01:00

17 lines
177 B
Kotlin
Vendored

fun test1() {
val a = null
if (a != null) {
println("X1")
}
if (a == null) {
println("X2")
}
}
// 0 IFNULL
// 0 IFNONNULL
// 0 X1
// 1 X2