Add bytecode tests for array for-loop iteration.
This commit is contained in:
committed by
max-kammerer
parent
7afe121238
commit
ba0e016c4e
@@ -0,0 +1,16 @@
|
||||
fun intArray() = intArrayOf(0, 0, 0, 0)
|
||||
fun longArray() = longArrayOf(0, 0, 0, 0)
|
||||
|
||||
fun f() {
|
||||
for (i in intArray()) {
|
||||
}
|
||||
|
||||
for (i in longArray()) {
|
||||
}
|
||||
}
|
||||
|
||||
// 0 iterator
|
||||
// 1 INVOKESTATIC .*\.intArray \(\)
|
||||
// 1 INVOKESTATIC .*\.longArray \(\)
|
||||
// 2 ARRAYLENGTH
|
||||
// 2 IF_ICMP
|
||||
Reference in New Issue
Block a user