Files
kotlin-fork/compiler/testData/ir/irText/expressions/breakContinue.fir.kt.txt
T
2020-11-26 00:15:13 +03:00

35 lines
567 B
Plaintext
Vendored

fun test1() {
while (true) break
dobreak while (true)
while (true) continue
docontinue while (true)
}
fun test2() {
OUTER@ while (true) { // BLOCK
INNER@ while (true) { // BLOCK
break@INNER
break@OUTER
}
break@OUTER
}
OUTER@ while (true) { // BLOCK
INNER@ while (true) { // BLOCK
continue@INNER
continue@OUTER
}
continue@OUTER
}
}
fun test3() {
L@ while (true) { // BLOCK
L@ while (true) break@L
break@L
}
L@ while (true) { // BLOCK
L@ while (true) continue@L
continue@L
}
}