mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
21 lines
343 B
Kotlin
Vendored
21 lines
343 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// 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"
|
|
}
|
|
}
|