Files
kotlin/compiler/testData/codegen/bytecodeText/forLoop/forIntInDownTo.kt
2019-04-04 09:07:19 +02:00

15 lines
200 B
Kotlin
Vendored

fun test(): Int {
var sum = 0
for (i in 4 downTo 1) {
sum = sum * 10 + i
}
return sum
}
// 0 iterator
// 0 getStart
// 0 getEnd
// 0 getFirst
// 0 getLast
// 1 IF_ICMP
// 1 IF