08bc0a6bd0
^KT-61564
18 lines
465 B
Kotlin
Vendored
18 lines
465 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// OPT_IN: kotlin.native.internal.InternalForKotlinNative
|
|
import kotlinx.cinterop.*
|
|
import kotlinx.cinterop.internal.*
|
|
|
|
@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
|
|
@CStruct(spelling = "struct { }") class Z constructor(rawPtr: NativePtr) : CStructVar(rawPtr) {
|
|
var x: Pair<Int, Int>? = null
|
|
@CStruct.MemberAt(offset = 0L) get
|
|
@CStruct.MemberAt(offset = 0L) set
|
|
}
|
|
|
|
fun foo(z: Z) {
|
|
z.x = 42 to 117
|
|
}
|
|
|
|
fun main() { }
|