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