blob: e8c72dad9cfb1fc0832d220f120c09c9012c5f2e [file]
// RUN_PIPELINE_TILL: BACKEND
// ISSUE: KT-77113
// FILE: Kotlin.kt
@file:OptIn(kotlin.concurrent.atomics.ExperimentalAtomicApi::class)
import kotlin.concurrent.atomics.AtomicReference
import kotlin.concurrent.atomics.AtomicArray
fun testKotlin() {
val b = AtomicReference<Int?>(128)
b.compareAndSet(128, null)
val c = AtomicArray(arrayOf(128, null))
c.compareAndSetAt(0, 128, null)
}
// FILE: Java.kt
import java.util.concurrent.atomic.AtomicReference
import java.util.concurrent.atomic.AtomicReferenceArray
fun testJava() {
val b = AtomicReference<Int?>(128)
b.compareAndSet(128, null)
val c = AtomicReferenceArray<Int?>(1)
c.compareAndSet(0, 128, null)
}
/* GENERATED_FIR_TAGS: annotationUseSiteTargetFile, classReference, flexibleType, functionDeclaration, integerLiteral,
javaFunction, localProperty, nullableType, propertyDeclaration */