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