Use stricter assertions in for-loop bytecode text tests.
This commit is contained in:
committed by
max-kammerer
parent
dd65e0876f
commit
a0940b1342
@@ -1,16 +1,21 @@
|
||||
fun intArray() = intArrayOf(0, 0, 0, 0)
|
||||
fun longArray() = longArrayOf(0, 0, 0, 0)
|
||||
|
||||
fun f() {
|
||||
fun f(): Int {
|
||||
var n = 0
|
||||
for (i in intArray()) {
|
||||
n++
|
||||
}
|
||||
|
||||
for (i in longArray()) {
|
||||
n++
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// 0 iterator
|
||||
// 1 INVOKESTATIC .*\.intArray \(\)
|
||||
// 1 INVOKESTATIC .*\.longArray \(\)
|
||||
// 2 ARRAYLENGTH
|
||||
// 2 IF_ICMP
|
||||
// 2 IF_ICMPGE
|
||||
// 2 IF
|
||||
Reference in New Issue
Block a user