Files
kotlin-fork/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t37.kt
T
2024-01-09 14:17:47 +00:00

12 lines
274 B
Kotlin
Vendored

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() { }