Simplistic support for native flag
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user