Files
kotlin-fork/compiler/testData/ir/irText/expressions/kt24804.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

27 lines
424 B
Plaintext
Vendored

inline fun foo(): Boolean {
return false
}
fun run(x: Boolean, y: Boolean): String {
var z: Int = 10
{ // BLOCK
l2@ do// COMPOSITE {
z = z.plus(other = 1)
when {
greater(arg0 = z, arg1 = 100) -> return "NOT_OK"
}
when {
x -> continue@l2
}
when {
y -> continue@l2
}
// } while (foo())
}
return "OK"
}
fun box(): String {
return run(x = true, y = true)
}