[Native][Tests] Add tests for -Xbinary=cInterfaceMode=none
This commit is contained in:
committed by
Space Team
parent
dd25130464
commit
4f9c1860b1
@@ -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
|
||||
Reference in New Issue
Block a user