Update bytecode text tests for JVM_IR
This commit is contained in:
+10
-2
@@ -1,6 +1,9 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
fun foo1(x: Int): Boolean {
|
||||
when(x) {
|
||||
0 -> return true
|
||||
1 -> return false
|
||||
2 -> return true
|
||||
3 -> return false
|
||||
2 + 2 -> return true
|
||||
else -> return false
|
||||
}
|
||||
@@ -8,9 +11,14 @@ fun foo1(x: Int): Boolean {
|
||||
|
||||
fun foo2(x: Int): Boolean {
|
||||
when(x) {
|
||||
0 -> return true
|
||||
1 -> return false
|
||||
2 -> return true
|
||||
3 -> return false
|
||||
Integer.MAX_VALUE -> return true
|
||||
else -> return false
|
||||
}
|
||||
}
|
||||
|
||||
// 2 TABLESWITCH
|
||||
// 1 TABLESWITCH
|
||||
// 1 LOOKUPSWITCH
|
||||
|
||||
Reference in New Issue
Block a user