mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
Use stricter assertions in for-loop bytecode text tests.
This commit is contained in:
committed by
max-kammerer
parent
dd65e0876f
commit
a0940b1342
@@ -1,8 +1,11 @@
|
||||
const val M = Int.MAX_VALUE
|
||||
|
||||
fun f(a: Int) {
|
||||
fun f(a: Int): Int {
|
||||
var n = 0
|
||||
for (i in a..M) {
|
||||
n++
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// 0 iterator
|
||||
@@ -11,4 +14,5 @@ fun f(a: Int) {
|
||||
// 0 getFirst
|
||||
// 0 getLast
|
||||
// 0 getStep
|
||||
// 2 IF_ICMP
|
||||
// 2 IF_ICMP
|
||||
// 2 IF
|
||||
Reference in New Issue
Block a user