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,8 +1,11 @@
const val M = Int.MAX_VALUE
fun f(a: Int) {
fun f(a: Int): Int {
var n = 0
for (i in a..M) {
n++
}
return n
}
// 0 iterator
@@ -11,4 +14,5 @@ fun f(a: Int) {
// 0 getFirst
// 0 getLast
// 0 getStep
// 2 IF_ICMP
// 2 IF_ICMP
// 2 IF