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

51 lines
749 B
Kotlin
Vendored

fun test1() {
while (true) { // BLOCK
break
}
{ // BLOCK
do// COMPOSITE {
break
// } while (true)
}
while (true) { // BLOCK
continue
}
{ // BLOCK
do// COMPOSITE {
continue
// } 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) { // BLOCK
break@L
}
break@L
}
L@ while (true) { // BLOCK
L@ while (true) { // BLOCK
continue@L
}
continue@L
}
}