[IR] add testdata for dumpKotlinLike

This commit is contained in:
Zalim Bashorov
2020-11-05 02:47:53 +03:00
committed by teamcityserver
parent d2022ab115
commit 8d5facb15f
365 changed files with 15516 additions and 0 deletions
@@ -0,0 +1,70 @@
fun testForBreak1(ss: List<String>) {
{ //BLOCK
val tmp0_iterator: Iterator<String> = ss.iterator()
while (tmp0_iterator.hasNext()) { //BLOCK
val s: String = tmp0_iterator.next()
{ //BLOCK
break
}
}
}
}
fun testForBreak2(ss: List<String>) {
{ //BLOCK
val tmp0_iterator: Iterator<String> = ss.iterator()
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
val s2: String = tmp1_iterator.next()
{ //BLOCK
break
break
break
}
}
}
break
}
}
}
}
fun testForContinue1(ss: List<String>) {
{ //BLOCK
val tmp0_iterator: Iterator<String> = ss.iterator()
while (tmp0_iterator.hasNext()) { //BLOCK
val s: String = tmp0_iterator.next()
{ //BLOCK
continue
}
}
}
}
fun testForContinue2(ss: List<String>) {
{ //BLOCK
val tmp0_iterator: Iterator<String> = ss.iterator()
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
val s2: String = tmp1_iterator.next()
{ //BLOCK
continue
continue
continue
}
}
}
continue
}
}
}
}