Files
kotlin/compiler/testData/codegen/box/fullJdk/native/simpleNative.kt
2016-11-09 21:41:12 +03:00

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