blob: 3323e3dd6c54ea8b1f1779364ab1691fce5a2165 [file]
// WITH_STDLIB
// FILE: lib.kt
@Suppress("NOTHING_TO_INLINE")
inline fun foo(i4: Int, i5: Int): Int {
try {
return i4 / i5
} catch (e: Throwable) {
return i4
}
}
// FILE: main.kt
import kotlin.test.*
fun bar(i1: Int, i2: Int, i3: Int): Int {
return i1 + foo(i2, i3)
}
fun box(): String {
assertEquals(5, bar(1, 8, 2))
return "OK"
}