Files
kotlin-fork/compiler/testData/ir/irText/expressions/kt24804.kt
T
Ilya Chernikov 5b3816cce5 Test infra: refactor IGNORE_BACKEND directive
treat it as a general one, introduce *_K1 and *_K2 variants for
more specific ignoring
2022-11-12 16:28:23 +01:00

18 lines
322 B
Kotlin
Vendored

// IGNORE_BACKEND_K2: JVM_IR
inline fun foo() = false
fun run(x: Boolean, y: Boolean): String {
var z = 10
l1@ l2@ do {
z += 1
if (z > 100) return "NOT_OK"
if (x) continue@l1
if (y) continue@l2
} while(foo())
return "OK"
}
fun box(): String {
return run(true, true)
}