Files
kotlin-fork/plugins/swift-export/testData/simple.golden.kt
T
Sergey Bogolepov 01976990e8 [Swift Export] Use ExportedBridge instead of ExportForCppRuntime
ExportedBridge annotation actually does what we need in Swift Export.
Unlike ExportForCppRuntime, it prevents symbol from DCE.
2023-12-13 14:09:58 +00:00

20 lines
441 B
Kotlin
Vendored

import kotlin.native.internal.ExportedBridge
@ExportedBridge("namespace1_main_foobar")
public fun namespace1_main_foobar(): Int {
val result = namespace1.main.foobar()
return result
}
@ExportedBridge("namespace1_foo")
public fun namespace1_foo(): Int {
val result = namespace1.foo()
return result
}
@ExportedBridge("namespace2_bar")
public fun namespace2_bar(): Int {
val result = namespace2.bar()
return result
}