mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +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,11 +1,15 @@
|
||||
fun array() = arrayOfNulls<Any>(4)
|
||||
|
||||
fun f() {
|
||||
fun f(): Int {
|
||||
var n = 0
|
||||
for (i in array()) {
|
||||
n++
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// 0 iterator
|
||||
// 1 INVOKESTATIC .*\.array \(\)
|
||||
// 1 ARRAYLENGTH
|
||||
// 1 IF_ICMP
|
||||
// 1 IF_ICMPGE
|
||||
// 1 IF
|
||||
Reference in New Issue
Block a user