blob: c10d8e14497b8bd2f74feb00ec91d012b21b41d5 [file] [log] [blame]
fun box(): String {
run {
run {
var x1 = 0
run { ++x1 }
if (x1 == 0) return "fail"
}
run {
var x2 = 0
run { x2++ }
if (x2 == 0) return "fail"
}
}
return "OK"
}
// Temporary variable for 'x2++' + store to fake variable marking the outer `run`:
// 2 ISTORE 1
// 0 NEW
// 0 GETFIELD
// 0 PUTFIELD
// No fake variables for @InlineOnly functions
// 0 ILOAD 6
// 0 ISTORE 6