Files
kotlin-fork/kotlin-native/backend.native/tests/interop/exceptions/cCallback.kt
T

11 lines
219 B
Kotlin

import kotlinx.cinterop.staticCFunction
import cCallback.runAndCatch
fun throwingCallback() {
throw IllegalStateException("Kotlin Exception!")
}
fun main() {
runAndCatch(staticCFunction(::throwingCallback))
}