blob: f159d460890a5e14a12c422b26c128c27713812e [file]
// FILE: test.kt
fun foo() {
if (flag) {
return
}
}
var flag = true
fun box() {
foo()
flag = false
foo()
}
// EXPECTATIONS JVM_IR
// test.kt:13 box
// test.kt:5 foo
// test.kt:6 foo
// test.kt:14 box
// test.kt:15 box
// test.kt:5 foo
// test.kt:8 foo
// test.kt:16 box
// EXPECTATIONS NATIVE
// test.kt:13 box
// test.kt:4 foo
// test.kt:5 foo
// test.kt:10 <get-flag>
// test.kt:5 foo
// test.kt:6 foo
// test.kt:8 foo
// test.kt:13 box
// test.kt:14 box
// test.kt:10 <set-flag>
// test.kt:15 box
// test.kt:4 foo
// test.kt:5 foo
// test.kt:10 <get-flag>
// test.kt:5 foo
// test.kt:8 foo
// test.kt:16 box
// EXPECTATIONS JS_IR
// test.kt:13 box
// test.kt:5 foo
// test.kt:6 foo
// test.kt:14 box
// test.kt:15 box
// test.kt:5 foo
// test.kt:8 foo
// test.kt:16 box
// EXPECTATIONS WASM
// test.kt:13 $box (4)
// test.kt:5 $foo (8)
// test.kt:6 $foo (8)
// test.kt:14 $box (11, 4)
// test.kt:15 $box (4)
// test.kt:5 $foo (8)
// test.kt:8 $foo (1)
// test.kt:16 $box (1)