Update bytecode text tests for JVM_IR

This commit is contained in:
Dmitry Petrov
2020-02-19 16:26:50 +03:00
parent 071149e0fb
commit 81b30b7399
31 changed files with 107 additions and 73 deletions
@@ -1,27 +1,20 @@
// IGNORE_BACKEND: JVM_IR
// FILE: C.kt
class CInt(val value: Int)
val nCInt3: CInt? = CInt(3)
// TODO KT-36646 Don't box primitive values in equality comparison with objects in JVM_IR
class CLong(val value: Long)
val nCLong3: CLong? = CLong(3)
// FILE: test.kt
fun testInt(i: Int?) =
when (i) {
0 -> "zero"
42 -> "magic"
else -> "other"
}
when (i) {
0 -> "zero"
42 -> "magic"
else -> "other"
}
fun testLong(i: Long?) =
when (i) {
0L -> "zero"
42L -> "magic"
else -> "other"
}
when (i) {
0L -> "zero"
42L -> "magic"
else -> "other"
}
// @TestKt.class:
// 0 valueOf
// 0 Integer.valueOf
// 0 Long.valueOf