9f2558f640
To separate interop modules to different packages, .def files should be treated similarly to .kt files: 1) package directive should be prepended with test-specific synthetic package, or, if, absent, package directive with synthetic package should be added. 2) in .kt files, import directives and fully-qualified import from interop modules should be prepended with same test-specific synthetic package.
18 lines
434 B
Kotlin
Vendored
18 lines
434 B
Kotlin
Vendored
/*
|
|
* Copyright 2010-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
|
* that can be found in the LICENSE file.
|
|
*/
|
|
// TARGET_BACKEND: NATIVE
|
|
// MODULE: cinterop
|
|
// FILE: packages.def
|
|
package package1.package2
|
|
---
|
|
#define OK_STRING "OK"
|
|
|
|
// MODULE: main(cinterop)
|
|
// FILE: main.kt
|
|
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
|
|
import package1.package2.*
|
|
|
|
fun box(): String = OK_STRING
|