12533a383e
The tests fail currently because Klibs are generated by the JS backend, and signatures differ between JVM and JS (on JVM, return types are included in mangles for simple functions). This leads to linkage errors. Once signatures are reworked and harmonized between backends, the tests will repair themselves.
21 lines
346 B
Kotlin
Vendored
21 lines
346 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// 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
|
|
} |