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

18 lines
230 B
Kotlin
Vendored

const val N = 'Z'
fun test(): Int {
var sum = 0
for (i in 'A' .. N) {
sum += i.toInt()
}
return sum
}
// 0 iterator
// 0 getStart
// 0 getEnd
// 0 getFirst
// 0 getLast
// 0 getStep
// 1 IF_ICMPGT
// 1 IF