[Native][Tests] Add tests for -Xbinary=cInterfaceMode=none

This commit is contained in:
Sergey Bogolepov
2024-02-16 11:17:10 +02:00
committed by Space Team
parent dd25130464
commit 4f9c1860b1
18 changed files with 338 additions and 16 deletions
@@ -0,0 +1,9 @@
#include <stdint.h>
int32_t my_function(int32_t);
int main() {
if (my_function(5) != 5) {
return -1;
}
}
@@ -0,0 +1,4 @@
import kotlin.native.internal.ExportedBridge
@ExportedBridge("my_function")
fun myFunction(value: Int): Int = value