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
+12
@@ -0,0 +1,12 @@
|
||||
|
||||
package dependency {
|
||||
|
||||
@CStruct(spelling = "struct { int x; }") @ExperimentalForeignApi class Foo constructor(rawPtr: NativePtr /* = NativePtr */) : CStructVar {
|
||||
var x: Int
|
||||
@CStruct.MemberAt(offset = 0.toLong()) get
|
||||
@CStruct.MemberAt(offset = 0.toLong()) set
|
||||
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
headers = struct.h
|
||||
Reference in New Issue
Block a user