mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
13 lines
183 B
Kotlin
Vendored
13 lines
183 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
const val N = 'Z'
|
|
|
|
fun test(): Int {
|
|
var sum = 0
|
|
for (i in 'A' .. N) {
|
|
sum += i.toInt()
|
|
}
|
|
return sum
|
|
}
|
|
|
|
// 0 IF_ICMPEQ
|
|
// 1 IF_ICMPGT |