Files
2024-01-09 14:17:47 +00:00

15 lines
400 B
Kotlin
Vendored

// FIR_IDENTICAL
// OPT_IN: kotlin.native.internal.InternalForKotlinNative
// OPT_IN: kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.*
import kotlinx.cinterop.internal.*
@CStruct(spelling = "struct { }") class Z constructor(rawPtr: NativePtr) : CStructVar(rawPtr) {
val x: Pair<Int, Int>? = null
@CStruct.MemberAt(offset = 0L) get
}
fun foo(z: Z) = z.x
fun main() { }