Files
kotlin-fork/compiler/testData/ir/irText/expressions/badBreakContinue.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

28 lines
361 B
Kotlin
Vendored

// IGNORE_BACKEND_K2: JVM_IR
// !IGNORE_ERRORS
fun test1() {
break
continue
}
fun test2() {
L1@ while (true) {
break@ERROR
continue@ERROR
}
}
fun test3() {
L1@ while (true) {
val lambda = {
break@L1
continue@L1
}
}
}
fun test4() {
while (break) {}
while (continue) {}
}