IR: restore reading common Klib from JVM
Adapt to changes in linker
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// FILE: klib.kt
|
||||
package fromKlib
|
||||
|
||||
class C {
|
||||
val inClass = "O"
|
||||
}
|
||||
|
||||
val toplevel get() = "K"
|
||||
|
||||
fun referByDescriptor(s: String) = s.length
|
||||
|
||||
// FILE: test.kt
|
||||
import fromKlib.C
|
||||
import fromKlib.referByDescriptor
|
||||
import fromKlib.toplevel
|
||||
|
||||
fun box(): String {
|
||||
referByDescriptor("heh")
|
||||
return C().inClass + toplevel
|
||||
}
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// FILE: klib.kt
|
||||
package fromKlib
|
||||
|
||||
|
||||
Reference in New Issue
Block a user