[K2/N] Export C adapters for non-root packages
^KT-56182 Merge-request: KT-MR-10160 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
c57c34525f
commit
363c56e226
@@ -0,0 +1,30 @@
|
||||
// This test is similar to kt42397, just everything is doubled: in "package knlibrary.subpackage" and the root package
|
||||
|
||||
// FILE: SecondLevelPackage.kt
|
||||
package knlibrary.subpackage
|
||||
|
||||
import kotlin.native.Platform
|
||||
|
||||
// The following 2 singletons are unused. However, since we are generating C bindings for them,
|
||||
// they should be marked as used, so that the code generator emits their deinitialization.
|
||||
|
||||
object A {}
|
||||
|
||||
class B {
|
||||
companion object {}
|
||||
}
|
||||
|
||||
fun enableMemoryChecker() {
|
||||
Platform.isMemoryLeakCheckerActive = true
|
||||
}
|
||||
|
||||
// FILE: rootPackage.kt
|
||||
object A {}
|
||||
|
||||
class B {
|
||||
companion object {}
|
||||
}
|
||||
|
||||
fun enableMemoryChecker() {
|
||||
Platform.isMemoryLeakCheckerActive = true
|
||||
}
|
||||
Reference in New Issue
Block a user