Files
kotlin-fork/compiler/testData/codegen/bytecodeText/controlStructures/kt17110.kt
T
Mads Ager 7f2efabe6a [JVM_IR]: Improve stepping for when.
Additionally, use the line number of the class for default interface
dispatch methods.
2020-08-07 09:16:01 +02:00

25 lines
368 B
Kotlin
Vendored

fun test(x: Int, y: Int): String {
var result: String
if (x == 6) {
if (y == 6) {
result = "a"
} else {
result = "b"
}
} else {
result = "c"
}
return result
}
fun infiniteLoop() {
while(true) {}
}
// JVM_TEMPLATES
// 2 GOTO L7
// 1 GOTO L1
// JVM_IR_TEMPLATES
// 2 GOTO L6
// 1 GOTO L0