[K/N] Added test for exceptions behaviour in case of dynamic libs (KT-47828)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import kotlin.native.concurrent.freeze
|
||||
|
||||
// KT-47828
|
||||
fun setHookAndThrow() {
|
||||
val hook = { _: Throwable ->
|
||||
println("OK. Kotlin unhandled exception hook")
|
||||
}
|
||||
hook.freeze()
|
||||
setUnhandledExceptionHook(hook)
|
||||
throw Exception("Error")
|
||||
}
|
||||
Reference in New Issue
Block a user