Native: add tests for ExperimentalForeignApi on cinterop declarations
Add tests checking that all (top-level) declarations generated by cinterop now have ExperimentalForeignApi annotation. ^KT-58362
This commit is contained in:
committed by
Space Team
parent
3f3f6eb5a8
commit
bcc4a891be
+11
@@ -0,0 +1,11 @@
|
||||
|
||||
package dependency {
|
||||
@ExperimentalForeignApi const val MACRO_CONST_GLOBAL: Int = 1
|
||||
@ExperimentalForeignApi val MACRO_GLOBAL: Int
|
||||
@CCall(id = "knifunptr_dependency3_MACRO_GLOBAL_getter") get
|
||||
@CCall(id = "knifunptr_dependency0_getValue") @ExperimentalForeignApi external fun getValue(): Int
|
||||
@ExperimentalForeignApi var global: Int
|
||||
@CCall(id = "knifunptr_dependency1_global_getter") get
|
||||
@CCall(id = "knifunptr_dependency2_global_setter") set
|
||||
}
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
headers = global.h
|
||||
Reference in New Issue
Block a user