Simplistic support for native flag

This commit is contained in:
Andrey Breslav
2014-11-13 17:47:29 +03:00
parent b0889f0760
commit cba6652c05
5 changed files with 42 additions and 8 deletions
@@ -0,0 +1,15 @@
import kotlin.jvm.*
class WithNative {
native fun foo() {}
}
fun box(): String {
try {
WithNative().foo()
return "Link error expected"
}
catch (e: java.lang.UnsatisfiedLinkError) {
return "OK"
}
}