Files
kotlin-fork/compiler/testData/codegen/box/fullJdk/native/simpleNative.kt
T
2018-06-09 19:15:38 +03:00

22 lines
376 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// 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"
}
}