[IR] update testdata: support labels on loops, break & continue

This commit is contained in:
Zalim Bashorov
2020-11-10 03:40:36 +03:00
committed by teamcityserver
parent 9daa86c1a2
commit 5c8a93c7ff
5 changed files with 43 additions and 43 deletions
@@ -13,21 +13,21 @@ fun testForBreak1(ss: List<String>) {
fun testForBreak2(ss: List<String>) {
{ // BLOCK
val tmp0_iterator: Iterator<String> = ss.iterator()
while (tmp0_iterator.hasNext()) { // BLOCK
OUTER@ while (tmp0_iterator.hasNext()) { // BLOCK
val s1: String = tmp0_iterator.next()
{ // BLOCK
{ // BLOCK
val tmp1_iterator: Iterator<String> = ss.iterator()
while (tmp1_iterator.hasNext()) { // BLOCK
INNER@ while (tmp1_iterator.hasNext()) { // BLOCK
val s2: String = tmp1_iterator.next()
{ // BLOCK
break
break
break@OUTER
break@INNER
break
}
}
}
break
break@OUTER
}
}
}
@@ -48,21 +48,21 @@ fun testForContinue1(ss: List<String>) {
fun testForContinue2(ss: List<String>) {
{ // BLOCK
val tmp0_iterator: Iterator<String> = ss.iterator()
while (tmp0_iterator.hasNext()) { // BLOCK
OUTER@ while (tmp0_iterator.hasNext()) { // BLOCK
val s1: String = tmp0_iterator.next()
{ // BLOCK
{ // BLOCK
val tmp1_iterator: Iterator<String> = ss.iterator()
while (tmp1_iterator.hasNext()) { // BLOCK
INNER@ while (tmp1_iterator.hasNext()) { // BLOCK
val s2: String = tmp1_iterator.next()
{ // BLOCK
continue
continue
continue@OUTER
continue@INNER
continue
}
}
}
continue
continue@OUTER
}
}
}