Files
kotlin/compiler/testData/codegen/bytecodeText/controlStructures/kt17110.kt
2020-02-17 23:52:48 +03:00

27 lines
407 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
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
// 1 GOTO L6
// 1 GOTO L7
// 1 GOtO L0