21 lines
298 B
Kotlin
Vendored
21 lines
298 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// IGNORE_BACKEND: ANDROID
|
|
|
|
// 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"
|
|
}
|
|
}
|