mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Add bytecode tests for array for-loop iteration.
This commit is contained in:
committed by
max-kammerer
parent
7afe121238
commit
ba0e016c4e
11
compiler/testData/codegen/bytecodeText/forLoop/forInObjectArray.kt
vendored
Normal file
11
compiler/testData/codegen/bytecodeText/forLoop/forInObjectArray.kt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
fun array() = arrayOfNulls<Any>(4)
|
||||
|
||||
fun f() {
|
||||
for (i in array()) {
|
||||
}
|
||||
}
|
||||
|
||||
// 0 iterator
|
||||
// 1 INVOKESTATIC .*\.array \(\)
|
||||
// 1 ARRAYLENGTH
|
||||
// 1 IF_ICMP
|
||||
Reference in New Issue
Block a user