Files
kotlin-fork/backend.native/tests/external/codegen/box/fullJdk/native/simpleNative.kt
T
2017-03-13 15:31:46 +03:00

21 lines
351 B
Kotlin

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