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,13 +1,12 @@
// IGNORE_BACKEND: JVM_IR
enum class A { V }
enum class A { V1, V2, V3 }
fun box(): String {
val a: A = A.V
val b: Boolean
when (a) {
A.V -> b = true
}
return if (b) "OK" else "FAIL"
fun test(a: A) {
val x: Int
when (a) {
A.V1 -> x = 11
A.V2 -> x = 22
A.V3 -> x = 33
}
}
// 1 TABLESWITCH