mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
17 lines
252 B
Kotlin
17 lines
252 B
Kotlin
package foo
|
|
|
|
import kotlin.jvm.*
|
|
|
|
class WithNative {
|
|
native fun foo()
|
|
}
|
|
|
|
fun box(): String {
|
|
try {
|
|
WithNative().foo()
|
|
return "Link error expected"
|
|
}
|
|
catch (e: java.lang.UnsatisfiedLinkError) {
|
|
return "OK"
|
|
}
|
|
} |