86 lines
2.1 KiB
Kotlin
Vendored
86 lines
2.1 KiB
Kotlin
Vendored
|
|
// FILE: test.kt
|
|
|
|
fun foo() {
|
|
if (flag) {
|
|
"OK"
|
|
} else {
|
|
"OK"
|
|
}
|
|
|
|
val b = if (flag) {
|
|
"OK"
|
|
} else {
|
|
"OK"
|
|
}
|
|
}
|
|
|
|
var flag = true
|
|
|
|
fun box() {
|
|
foo()
|
|
flag = false
|
|
foo()
|
|
}
|
|
|
|
// EXPECTATIONS JVM_IR
|
|
// test.kt:21 box
|
|
// test.kt:5 foo
|
|
// test.kt:6 foo
|
|
// test.kt:11 foo
|
|
// test.kt:12 foo
|
|
// test.kt:11 foo
|
|
// test.kt:16 foo
|
|
// test.kt:22 box
|
|
// test.kt:23 box
|
|
// test.kt:5 foo
|
|
// test.kt:8 foo
|
|
// test.kt:11 foo
|
|
// test.kt:14 foo
|
|
// test.kt:11 foo
|
|
// test.kt:16 foo
|
|
// test.kt:24 box
|
|
|
|
// EXPECTATIONS JS_IR
|
|
// test.kt:21 box
|
|
// test.kt:5 foo
|
|
// test.kt:11 foo
|
|
// test.kt:12 foo
|
|
// test.kt:11 foo
|
|
// test.kt:16 foo
|
|
// test.kt:22 box
|
|
// test.kt:23 box
|
|
// test.kt:5 foo
|
|
// test.kt:11 foo
|
|
// test.kt:14 foo
|
|
// test.kt:11 foo
|
|
// test.kt:16 foo
|
|
// test.kt:24 box
|
|
|
|
// EXPECTATIONS WASM
|
|
// test.kt:21 $box
|
|
// test.kt:5 $foo (8, 8)
|
|
// test.kt:6 $foo (8, 8, 8, 8)
|
|
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17)
|
|
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8)
|
|
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
|
// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1)
|
|
// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8)
|
|
// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8)
|
|
// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4)
|
|
// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4)
|
|
// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4)
|
|
// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8)
|
|
// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16)
|
|
// Array.kt:76 $kotlin.Array.set
|
|
// String.kt:149 $kotlin.stringLiteral (11, 4)
|
|
// test.kt:11 $foo (16, 4, 16, 4)
|
|
// test.kt:12 $foo (8, 8, 8, 8)
|
|
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8)
|
|
// test.kt:16 $foo (1, 1)
|
|
// test.kt:22 $box (11, 4)
|
|
// test.kt:23 $box
|
|
// test.kt:8 $foo (8, 8, 8, 8)
|
|
// test.kt:14 $foo (8, 8, 8, 8)
|
|
// test.kt:24 $box
|