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.
31 lines
449 B
Kotlin
Vendored
31 lines
449 B
Kotlin
Vendored
// FILE: test.kt
|
|
|
|
fun foo(shouldThrow: Boolean) {
|
|
try {
|
|
if (shouldThrow) throw Exception()
|
|
} catch (e: Exception) {
|
|
"OK"
|
|
}
|
|
"OK"
|
|
}
|
|
|
|
fun box() {
|
|
foo(false)
|
|
foo(true)
|
|
}
|
|
|
|
// EXPECTATIONS
|
|
// test.kt:13 box
|
|
// test.kt:4 foo
|
|
// test.kt:5 foo
|
|
// test.kt:9 foo
|
|
// test.kt:10 foo
|
|
// test.kt:14 box
|
|
// test.kt:4 foo
|
|
// test.kt:5 foo
|
|
// test.kt:6 foo
|
|
// test.kt:7 foo
|
|
// test.kt:9 foo
|
|
// test.kt:10 foo
|
|
// test.kt:15 box
|