e9c9d5731e
This is in preparation for enabling the tests for FIR which will be easier to do when the tests are on the new infrastructure.
37 lines
477 B
Kotlin
Vendored
37 lines
477 B
Kotlin
Vendored
// FILE: test.kt
|
|
|
|
var value = false
|
|
|
|
fun cond() = value
|
|
|
|
fun foo() {
|
|
if (cond())
|
|
cond()
|
|
else
|
|
false
|
|
}
|
|
|
|
fun box() {
|
|
foo()
|
|
value = true
|
|
foo()
|
|
}
|
|
|
|
// EXPECTATIONS
|
|
// test.kt:15 box
|
|
// test.kt:8 foo
|
|
// test.kt:5 cond
|
|
// test.kt:8 foo
|
|
// test.kt:11 foo
|
|
// test.kt:12 foo
|
|
// test.kt:16 box
|
|
// test.kt:17 box
|
|
// test.kt:8 foo
|
|
// test.kt:5 cond
|
|
// test.kt:8 foo
|
|
// test.kt:9 foo
|
|
// test.kt:5 cond
|
|
// test.kt:9 foo
|
|
// test.kt:12 foo
|
|
// test.kt:18 box
|