[K/N] Fix kt53261_noinline_NonNullNativePtr.kt with K2

This commit is contained in:
Alexander Shabalin
2023-09-13 11:03:11 +02:00
committed by Space Team
parent d8c80b0270
commit 503c1a2eb6
@@ -11,6 +11,7 @@ import kotlinx.cinterop.*
fun main() = memScoped {
val var1: IntVar = alloc()
val var2: IntVar = alloc()
@Suppress("INVISIBLE_MEMBER")
// The first one is K1, the second one is K2.
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
println(var1.ptr.value as Any == var2.ptr.value as Any)
}