d011fa8dc6
Drop the old scheme which relied on the directory name
24 lines
369 B
Kotlin
Vendored
24 lines
369 B
Kotlin
Vendored
// FULL_JDK
|
|
|
|
class C {
|
|
companion object {
|
|
private @JvmStatic external fun foo()
|
|
}
|
|
|
|
fun bar() {
|
|
foo()
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
try {
|
|
C().bar()
|
|
return "Link error expected"
|
|
}
|
|
catch (e: java.lang.UnsatisfiedLinkError) {
|
|
if (e.message != "C.foo()V") return "Fail 1: " + e.message
|
|
}
|
|
|
|
return "OK"
|
|
}
|