OptIn ExperimentalNativeApi

This commit is contained in:
Abduqodiri Qurbonzoda
2023-06-17 11:50:29 +03:00
committed by Space Team
parent aae8a687a4
commit 209c916a7e
94 changed files with 123 additions and 67 deletions
@@ -2,7 +2,7 @@
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class, kotlin.experimental.ExperimentalNativeApi::class)
import kotlin.native.*
import kotlin.test.*
@@ -2,7 +2,7 @@
* Copyright 2010-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class, kotlin.experimental.ExperimentalNativeApi::class)
import kotlinx.cinterop.*
import cglobals.*
@@ -2,7 +2,7 @@
* Copyright 2010-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlinx.cinterop.ExperimentalForeignApi::class)
import kotlin.test.*
import cmacros.*
@@ -1,4 +1,4 @@
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlinx.cinterop.ExperimentalForeignApi::class)
import cunion.*
import kotlinx.cinterop.*
@@ -1,4 +1,4 @@
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class, kotlin.experimental.ExperimentalNativeApi::class)
import kotlinx.cinterop.*
import kotlin.native.*
@@ -1,3 +1,4 @@
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
package knlibrary
import kotlin.native.Platform
@@ -1,5 +1,6 @@
// This test is similar to kt42397, just everything is doubled: in "package knlibrary" and the root package
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
package knlibrary
import kotlin.native.Platform
@@ -1,5 +1,7 @@
// This test is similar to kt42397, just everything is in root package instead of "package knlibrary"
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
import kotlin.native.Platform
// The following 2 singletons are unused. However, since we are generating C bindings for them,
@@ -1,6 +1,7 @@
// This test is similar to kt42397, just everything is doubled: in "package knlibrary.subpackage" and the root package
// FILE: FirstLevelPackage.kt
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
package knlibrary
import kotlin.native.Platform
@@ -19,6 +20,8 @@ fun enableMemoryChecker() {
}
// FILE: rootPackage.kt
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
object A {}
class B {
@@ -1,6 +1,7 @@
// This test is similar to kt42397, just everything is doubled: in "package knlibrary.subpackage" and the root package
// FILE: SecondLevelPackage.kt
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
package knlibrary.subpackage
import kotlin.native.Platform
@@ -19,6 +20,8 @@ fun enableMemoryChecker() {
}
// FILE: rootPackage.kt
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
object A {}
class B {
@@ -1,4 +1,5 @@
// This test is similar to kt42397, just everything is in "package knlibrary.subpackage" instead of "package knlibrary"
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
package knlibrary.subpackage
import kotlin.native.Platform
@@ -1,4 +1,4 @@
@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class)
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
import leakMemory.*
import kotlin.native.concurrent.*
@@ -1,4 +1,4 @@
@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class)
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
import leakMemory.*
import kotlin.native.concurrent.*
@@ -1,4 +1,4 @@
@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class, ObsoleteWorkersApi::class)
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class, ObsoleteWorkersApi::class)
import objclib.*
import kotlin.native.concurrent.*
@@ -2,6 +2,7 @@
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
import objclib.*
@@ -2,7 +2,7 @@
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class)
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
import kotlinx.cinterop.*
import objcSmoke.*
@@ -2,7 +2,7 @@
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class)
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
import kotlinx.cinterop.*
import objcSmoke.*
@@ -2,6 +2,7 @@
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
import kotlin.test.*
import kotlin.native.ref.WeakReference
@@ -1,4 +1,4 @@
@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class)
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
import kotlin.native.ref.WeakReference
import kotlinx.cinterop.*
@@ -1,3 +1,5 @@
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
import kotlin.system.exitProcess
import kotlinx.cinterop.autoreleasepool
import kotlin.native.internal.test.testLauncherEntryPoint
@@ -1,4 +1,4 @@
@file:OptIn(FreezingIsDeprecated::class, ObsoleteWorkersApi::class)
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, FreezingIsDeprecated::class, ObsoleteWorkersApi::class)
import kotlinx.cinterop.*
import kotlin.native.concurrent.*
@@ -1,4 +1,4 @@
@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class)
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
import kotlin.native.ref.*
import kotlinx.cinterop.*
@@ -1,3 +1,5 @@
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
import objc_misc.*
import kotlin.native.Platform
@@ -2,7 +2,7 @@
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:OptIn(FreezingIsDeprecated::class, ExperimentalStdlibApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
@file:OptIn(FreezingIsDeprecated::class, kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
import kotlin.native.concurrent.*
import kotlin.native.runtime.Debugging
@@ -2,7 +2,7 @@
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:OptIn(FreezingIsDeprecated::class, ExperimentalStdlibApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
@file:OptIn(FreezingIsDeprecated::class, kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
import kotlin.native.concurrent.*
import kotlin.native.runtime.Debugging