Files
kotlin/compiler/testData/codegen/box/fullJdk/native/simpleNative.kt

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"
}
}