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

View File

@@ -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