bcc4a891be
Add tests checking that all (top-level) declarations generated by cinterop now have ExperimentalForeignApi annotation. ^KT-58362
13 lines
554 B
Plaintext
Vendored
13 lines
554 B
Plaintext
Vendored
|
|
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
|
|
}
|
|
|
|
}
|
|
|