Files
kotlin-fork/compiler/testData/codegen/box/fullJdk/native/simpleNative.kt
T
Mikhail Bogdanov dec93c8b49 Add ANDROID target
2020-04-14 13:53:22 +02:00

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