Use stricter assertions in for-loop bytecode text tests.

This commit is contained in:
Mark Punzalan
2019-04-03 13:22:16 -07:00
committed by max-kammerer
parent dd65e0876f
commit a0940b1342
22 changed files with 82 additions and 31 deletions
@@ -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