mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
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
17 lines
177 B
Kotlin
Vendored
17 lines
177 B
Kotlin
Vendored
fun test1() {
|
|
val a = Unit
|
|
|
|
if (a != null) {
|
|
println("X1")
|
|
}
|
|
|
|
if (a == null) {
|
|
println("X2")
|
|
}
|
|
}
|
|
|
|
// 0 IFNULL
|
|
// 0 IFNONNULL
|
|
// 1 X1
|
|
// 0 X2
|