From 8f12bf6cc8d994b2aea068d090b8fe54f8718329 Mon Sep 17 00:00:00 2001 From: Vladimir Sukharev Date: Wed, 22 Nov 2023 19:56:02 +0100 Subject: [PATCH] [K/N] Move special backend checks test sources to diagnostic tests folder ^KT-61564 --- .../specialBackendChecks/README.md | 60 +++++++ .../specialBackendChecks/cInterop}/t1.kt | 0 .../specialBackendChecks/cInterop}/t10.kt | 0 .../specialBackendChecks/cInterop}/t11.kt | 0 .../specialBackendChecks/cInterop}/t12.kt | 0 .../specialBackendChecks/cInterop}/t13.kt | 0 .../specialBackendChecks/cInterop}/t14.kt | 0 .../specialBackendChecks/cInterop}/t37.kt | 0 .../specialBackendChecks/cInterop}/t38.kt | 0 .../specialBackendChecks/cInterop}/t40.kt | 0 .../specialBackendChecks/cInterop}/t41.kt | 0 .../specialBackendChecks/cInterop}/t42.kt | 0 .../specialBackendChecks/cInterop}/t43.kt | 0 .../specialBackendChecks/cInterop}/t44.kt | 0 .../specialBackendChecks/cInterop}/t45.kt | 0 .../specialBackendChecks/cInterop}/t46.kt | 0 .../specialBackendChecks/cInterop}/t47.kt | 0 .../specialBackendChecks/cInterop}/t60.kt | 0 .../specialBackendChecks/cInterop}/t63.kt | 0 .../specialBackendChecks/cInterop}/t64.kt | 0 .../specialBackendChecks/cInterop}/t8.kt | 0 .../specialBackendChecks/cInterop}/t9.kt | 0 .../specialBackendChecks/concurrent}/t48.kt | 0 .../specialBackendChecks/concurrent}/t49.kt | 0 .../specialBackendChecks/concurrent}/t50.kt | 0 .../specialBackendChecks/concurrent}/t51.kt | 0 .../immutableBlobOf}/t54.kt | 0 .../immutableBlobOf}/t55.kt | 0 .../immutableBlobOf}/t56.kt | 0 .../immutableBlobOf}/t57.kt | 0 .../specialBackendChecks/nativeRef}/t52.kt | 0 .../specialBackendChecks/nativeRef}/t53.kt | 0 .../specialBackendChecks/objCInterop}/t15.kt | 0 .../specialBackendChecks/objCInterop}/t16.kt | 0 .../specialBackendChecks/objCInterop}/t17.kt | 0 .../specialBackendChecks/objCInterop}/t18.kt | 0 .../specialBackendChecks/objCInterop}/t2.kt | 0 .../specialBackendChecks/objCInterop}/t20.kt | 0 .../specialBackendChecks/objCInterop}/t21.kt | 0 .../specialBackendChecks/objCInterop}/t22.kt | 0 .../specialBackendChecks/objCInterop}/t23.kt | 0 .../specialBackendChecks/objCInterop}/t24.kt | 0 .../specialBackendChecks/objCInterop}/t25.kt | 0 .../specialBackendChecks/objCInterop}/t26.kt | 0 .../specialBackendChecks/objCInterop}/t27.kt | 0 .../specialBackendChecks/objCInterop}/t28.kt | 0 .../specialBackendChecks/objCInterop}/t29.kt | 0 .../specialBackendChecks/objCInterop}/t30.kt | 0 .../specialBackendChecks/objCInterop}/t31.kt | 0 .../specialBackendChecks/objCInterop}/t32.kt | 0 .../specialBackendChecks/objCInterop}/t33.kt | 0 .../specialBackendChecks/objCInterop}/t34.kt | 0 .../specialBackendChecks/objCInterop}/t35.kt | 0 .../specialBackendChecks/objCInterop}/t4.kt | 0 .../specialBackendChecks/objCInterop}/t5.kt | 0 .../specialBackendChecks/objCInterop}/t6.kt | 0 .../specialBackendChecks/objCInterop}/t61.kt | 0 .../specialBackendChecks/objCInterop}/t62.kt | 0 .../specialBackendChecks/objCInterop}/t7.kt | 0 .../specialBackendChecks/posix}/t3.kt | 0 .../specialBackendChecks/posix}/t36.kt | 0 .../specialBackendChecks/reflect}/t58.kt | 0 .../specialBackendChecks/reflect}/t59.kt | 0 .../specialBackendChecks/runtest.sh | 12 ++ .../specialBackendChecks/runtests.sh | 10 ++ .../tests/compilerChecks/README.md | 148 ------------------ .../tests/compilerChecks/runtests.sh | 9 -- 67 files changed, 82 insertions(+), 157 deletions(-) create mode 100644 compiler/testData/diagnostics/nativeTests/specialBackendChecks/README.md rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t1.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t10.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t11.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t12.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t13.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t14.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t37.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t38.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t40.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t41.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t42.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t43.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t44.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t45.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t46.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t47.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t60.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t63.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t64.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t8.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop}/t9.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent}/t48.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent}/t49.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent}/t50.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent}/t51.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf}/t54.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf}/t55.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf}/t56.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf}/t57.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/nativeRef}/t52.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/nativeRef}/t53.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t15.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t16.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t17.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t18.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t2.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t20.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t21.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t22.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t23.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t24.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t25.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t26.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t27.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t28.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t29.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t30.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t31.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t32.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t33.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t34.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t35.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t4.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t5.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t6.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t61.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t62.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop}/t7.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/posix}/t3.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/posix}/t36.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/reflect}/t58.kt (100%) rename {kotlin-native/backend.native/tests/compilerChecks => compiler/testData/diagnostics/nativeTests/specialBackendChecks/reflect}/t59.kt (100%) create mode 100755 compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtest.sh create mode 100755 compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtests.sh delete mode 100644 kotlin-native/backend.native/tests/compilerChecks/README.md delete mode 100755 kotlin-native/backend.native/tests/compilerChecks/runtests.sh diff --git a/compiler/testData/diagnostics/nativeTests/specialBackendChecks/README.md b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/README.md new file mode 100644 index 00000000000..f6d16655416 --- /dev/null +++ b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/README.md @@ -0,0 +1,60 @@ +This testsuit fir specialBackendChecks on Mac hosts relies on platform libs are installed. +To run testsuit locally, make sure the above is executed first: +- `./gradlew :kotlin-native:platformLibs:macos_arm64Install` or +- `./gradlew :kotlin-native:platformLibs:macos_x64Install` + +This testsuit is run differently for K1 and K2 frontends: +- K1/N manual: run `compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtests.sh -language-version 1.9`, +- K2/N manual: run `compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtests.sh`, +- K2/N tests are also run in scope of `FirLightTreeOldFrontendNativeDiagnosticsTestGenerated` and `FirPsiOldFrontendNativeDiagnosticsTestGenerated`. + +Reference output for K1/N manual run is provided below. + +Reference output for K2/N manual run is slightly different for newly-migrated Fir checks: source lines are displayed. +For not yet migrated checks, the output must be the same as below. + +```text +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t1.kt +/tmp/t1.kt:12:5: error: variadic function pointers are not supported +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t10.kt +/tmp/t10.kt:8:5: error: type kotlin.Function1<*, kotlin.Int> of callback parameter 1 is not supported here: * as 1 parameter type +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t11.kt +/tmp/t11.kt:8:5: error: type kotlin.Function1 of callback parameter 1 is not supported here: in-variance of 1 parameter type +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t12.kt +/tmp/t12.kt:8:5: error: type kotlinx.cinterop.CValue<*>? of callback parameter 1 is not supported here: must not be nullable +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t13.kt +/tmp/t13.kt:9:5: error: type kotlinx.cinterop.CValue.bar> of callback parameter 1 is not supported here: must be parameterized with concrete class +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t14.kt +/tmp/t14.kt:10:5: error: type kotlinx.cinterop.CValue<.Z> of callback parameter 1 is not supported here: not a structure or too complex +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t37.kt +/tmp/t37.kt:8:5: error: subclasses of kotlinx.cinterop.NativePointed cannot have properties with backing fields +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t38.kt +/tmp/t38.kt:8:5: error: subclasses of kotlinx.cinterop.NativePointed cannot have properties with backing fields +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t40.kt +/tmp/t40.kt:10:5: error: kotlinx.cinterop.staticCFunction must take an unbound, non-capturing function or lambda, but captures at: + /tmp/t40.kt:10:21 +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t41.kt +/tmp/t41.kt:9:5: error: kotlinx.cinterop.staticCFunction must take an unbound, non-capturing function or lambda, but captures at: + /tmp/t41.kt:7:17: x +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t42.kt +/tmp/t42.kt:8:5: error: c function signature element mismatch: expected 'kotlin.Any', got 'kotlin.String' +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t43.kt +/tmp/t43.kt:5:21: error: receiver's type kotlin.Float is not an integer type +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t44.kt +/tmp/t44.kt:5:21: error: type argument kotlin.Float is not an integer type +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t45.kt +/tmp/t45.kt:5:21: error: unable to sign extend kotlin.Int to kotlin.Short +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t46.kt +/tmp/t46.kt:5:21: error: unable to narrow kotlin.Int to kotlin.Long +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t47.kt +/tmp/t47.kt:5:21: error: unable to convert kotlin.Int to kotlin.String +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t60.kt +/tmp/t60.kt:6:5: error: subclasses of kotlinx.cinterop.NativePointed cannot have properties with backing fields +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t63.kt +/tmp/t63.kt:26:17: error: calling suspend functions from `autoreleasepool {}` is prohibited, see https://youtrack.jetbrains.com/issue/KT-50786 +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t64.kt +/tmp/t64.kt:29:17: error: calling suspend functions from `autoreleasepool {}` is prohibited, see https://youtrack.jetbrains.com/issue/KT-50786 +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t8.kt +/tmp/t8.kt:8:5: error: type kotlin.Function0<*> of callback parameter 1 is not supported here: * as return type +compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t9.kt +``` \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/compilerChecks/t1.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t1.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t1.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t1.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t10.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t10.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t10.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t10.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t11.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t11.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t11.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t11.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t12.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t12.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t12.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t12.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t13.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t13.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t13.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t13.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t14.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t14.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t14.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t14.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t37.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t37.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t37.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t37.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t38.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t38.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t38.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t38.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t40.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t40.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t40.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t40.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t41.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t41.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t41.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t41.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t42.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t42.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t42.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t42.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t43.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t43.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t43.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t43.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t44.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t44.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t44.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t44.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t45.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t45.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t45.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t45.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t46.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t46.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t46.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t46.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t47.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t47.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t47.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t47.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t60.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t60.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t60.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t60.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t63.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t63.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t63.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t63.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t64.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t64.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t64.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t64.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t8.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t8.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t8.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t8.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t9.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t9.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t9.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/cInterop/t9.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t48.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent/t48.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t48.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent/t48.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t49.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent/t49.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t49.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent/t49.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t50.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent/t50.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t50.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent/t50.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t51.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent/t51.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t51.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/concurrent/t51.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t54.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf/t54.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t54.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf/t54.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t55.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf/t55.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t55.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf/t55.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t56.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf/t56.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t56.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf/t56.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t57.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf/t57.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t57.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/immutableBlobOf/t57.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t52.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/nativeRef/t52.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t52.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/nativeRef/t52.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t53.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/nativeRef/t53.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t53.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/nativeRef/t53.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t15.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t15.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t15.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t15.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t16.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t16.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t16.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t16.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t17.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t17.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t17.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t17.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t18.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t18.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t18.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t18.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t2.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t2.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t2.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t2.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t20.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t20.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t20.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t20.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t21.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t21.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t21.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t21.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t22.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t22.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t22.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t22.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t23.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t23.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t23.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t23.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t24.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t24.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t24.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t24.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t25.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t25.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t25.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t25.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t26.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t26.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t26.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t26.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t27.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t27.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t27.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t27.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t28.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t28.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t28.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t28.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t29.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t29.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t29.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t29.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t30.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t30.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t30.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t30.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t31.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t31.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t31.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t31.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t32.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t32.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t32.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t32.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t33.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t33.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t33.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t33.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t34.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t34.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t34.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t34.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t35.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t35.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t35.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t35.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t4.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t4.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t4.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t4.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t5.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t5.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t5.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t5.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t6.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t6.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t6.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t6.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t61.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t61.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t61.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t61.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t62.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t62.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t62.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t62.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t7.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t7.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t7.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/objCInterop/t7.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t3.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/posix/t3.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t3.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/posix/t3.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t36.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/posix/t36.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t36.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/posix/t36.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t58.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/reflect/t58.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t58.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/reflect/t58.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t59.kt b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/reflect/t59.kt similarity index 100% rename from kotlin-native/backend.native/tests/compilerChecks/t59.kt rename to compiler/testData/diagnostics/nativeTests/specialBackendChecks/reflect/t59.kt diff --git a/compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtest.sh b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtest.sh new file mode 100755 index 00000000000..c0ef9efd572 --- /dev/null +++ b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtest.sh @@ -0,0 +1,12 @@ +# +# 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. +# + +# Usage: compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtest.sh <-language-version 1.9> + +FILTERED_FILE=/tmp/$(basename $1) +# Remove diagnostic directives from test source +cat $1 | sed -e 's///g' | sed -e 's///g' > $FILTERED_FILE +shift +konanc -opt-in=kotlin.native.internal.InternalForKotlinNative "$FILTERED_FILE" "$@" diff --git a/compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtests.sh b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtests.sh new file mode 100755 index 00000000000..c3dbbf1552e --- /dev/null +++ b/compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtests.sh @@ -0,0 +1,10 @@ +# +# 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. +# +SOURCE=${BASH_SOURCE[0]} +SCRIPT_DIR=$(dirname $SOURCE) +for TEST in $SCRIPT_DIR/**/*.kt; do + echo "$TEST" + compiler/testData/diagnostics/nativeTests/specialBackendChecks/runtest.sh $TEST "$@" +done diff --git a/kotlin-native/backend.native/tests/compilerChecks/README.md b/kotlin-native/backend.native/tests/compilerChecks/README.md deleted file mode 100644 index 67721b4c31d..00000000000 --- a/kotlin-native/backend.native/tests/compilerChecks/README.md +++ /dev/null @@ -1,148 +0,0 @@ -These tests aren't invoked so far because there is no mechanism of checking compilation errors yet. - -To run tests manually on MacOS, -- build platformLibs: `./gradlew :kotlin-native:platformLibs:macos_arm64Install` or `./gradlew :kotlin-native:platformLibs:macos_x64Install` -- run `runtests.sh` as described below. - -K1: `kotlin-native/backend.native/tests/compilerChecks/runtests.sh -language-version 1.9` -K2: `kotlin-native/backend.native/tests/compilerChecks/runtests.sh` - -Reference output: -```text -kotlin-native/backend.native/tests/compilerChecks/t1.kt -kotlin-native/backend.native/tests/compilerChecks/t1.kt:10:5: error: variadic function pointers are not supported -kotlin-native/backend.native/tests/compilerChecks/t10.kt -kotlin-native/backend.native/tests/compilerChecks/t10.kt:6:5: error: type kotlin.Function1<*, kotlin.Int> of callback parameter 1 is not supported here: * as 1 parameter type -kotlin-native/backend.native/tests/compilerChecks/t11.kt -kotlin-native/backend.native/tests/compilerChecks/t11.kt:6:5: error: type kotlin.Function1 of callback parameter 1 is not supported here: in-variance of 1 parameter type -kotlin-native/backend.native/tests/compilerChecks/t12.kt -kotlin-native/backend.native/tests/compilerChecks/t12.kt:6:5: error: type kotlinx.cinterop.CValue<*>? of callback parameter 1 is not supported here: must not be nullable -kotlin-native/backend.native/tests/compilerChecks/t13.kt -kotlin-native/backend.native/tests/compilerChecks/t13.kt:7:5: error: type kotlinx.cinterop.CValue.bar> of callback parameter 1 is not supported here: must be parameterized with concrete class -kotlin-native/backend.native/tests/compilerChecks/t14.kt -kotlin-native/backend.native/tests/compilerChecks/t14.kt:8:5: error: type kotlinx.cinterop.CValue<.Z> of callback parameter 1 is not supported here: not a structure or too complex -kotlin-native/backend.native/tests/compilerChecks/t15.kt -kotlin-native/backend.native/tests/compilerChecks/t15.kt:4:26: error: type kotlin.Function0 is not supported here: not supported as variadic argument -kotlin-native/backend.native/tests/compilerChecks/t16.kt -kotlin-native/backend.native/tests/compilerChecks/t16.kt:6:26: error: type .Z is not supported here: doesn't correspond to any C type -kotlin-native/backend.native/tests/compilerChecks/t17.kt -kotlin-native/backend.native/tests/compilerChecks/t17.kt:6:15: error: super calls to Objective-C protocols are not allowed -kotlin-native/backend.native/tests/compilerChecks/t18.kt -kotlin-native/backend.native/tests/compilerChecks/t18.kt:6:19: error: super calls to Objective-C meta classes are not supported yet -kotlin-native/backend.native/tests/compilerChecks/t2.kt -kotlin-native/backend.native/tests/compilerChecks/t2.kt:5:5: error: 'handleFailureInFunction' overrides nothing - override fun handleFailureInFunction(functionName: String, file: String, lineNumber: NSInteger /* = Long */, description: String?, vararg args: Any?) { } - ^ -kotlin-native/backend.native/tests/compilerChecks/t20.kt -kotlin-native/backend.native/tests/compilerChecks/t20.kt:4:1: error: only classes are supported as subtypes of Objective-C types -kotlin-native/backend.native/tests/compilerChecks/t21.kt -kotlin-native/backend.native/tests/compilerChecks/t21.kt:4:1: error: non-final Kotlin subclasses of Objective-C classes are not yet supported -kotlin-native/backend.native/tests/compilerChecks/t22.kt -kotlin-native/backend.native/tests/compilerChecks/t22.kt:4:1: error: fields are not supported for Companion of subclass of ObjC type -kotlin-native/backend.native/tests/compilerChecks/t23.kt -kotlin-native/backend.native/tests/compilerChecks/t23.kt:6:1: error: mixing Kotlin and Objective-C supertypes is not supported -kotlin-native/backend.native/tests/compilerChecks/t24.kt -kotlin-native/backend.native/tests/compilerChecks/t24.kt:4:1: error: only companion objects of subclasses of Objective-C classes can inherit from Objective-C metaclasses -kotlin-native/backend.native/tests/compilerChecks/t25.kt -kotlin-native/backend.native/tests/compilerChecks/t25.kt:5:14: error: can't override 'toString', override 'description' instead -kotlin-native/backend.native/tests/compilerChecks/t26.kt -kotlin-native/backend.native/tests/compilerChecks/t26.kt:7:9: error: @kotlinx.cinterop.ObjCAction method must not have extension receiver -kotlin-native/backend.native/tests/compilerChecks/t27.kt -kotlin-native/backend.native/tests/compilerChecks/t27.kt:7:13: error: unexpected @kotlinx.cinterop.ObjCAction method parameter type: kotlin.String -Only Objective-C object types are supported here -kotlin-native/backend.native/tests/compilerChecks/t28.kt -kotlin-native/backend.native/tests/compilerChecks/t28.kt:7:5: error: unexpected @kotlinx.cinterop.ObjCAction method return type: kotlin.Int -Only 'Unit' is supported here -kotlin-native/backend.native/tests/compilerChecks/t29.kt -kotlin-native/backend.native/tests/compilerChecks/t29.kt:6:5: error: @kotlinx.cinterop.ObjCOutlet property must be var -kotlin-native/backend.native/tests/compilerChecks/t3.kt -kotlin-native/backend.native/tests/compilerChecks/t3.kt:4:13: error: callable references to variadic C functions are not supported -kotlin-native/backend.native/tests/compilerChecks/t30.kt -kotlin-native/backend.native/tests/compilerChecks/t30.kt:7:9: error: @kotlinx.cinterop.ObjCOutlet must not have extension receiver -kotlin-native/backend.native/tests/compilerChecks/t31.kt -kotlin-native/backend.native/tests/compilerChecks/t31.kt:6:5: error: unexpected @kotlinx.cinterop.ObjCOutlet type: kotlin.String -Only Objective-C object types are supported here -kotlin-native/backend.native/tests/compilerChecks/t32.kt -kotlin-native/backend.native/tests/compilerChecks/t32.kt:7:5: error: constructor with @kotlinx.cinterop.ObjCObjectBase.OverrideInit doesn't override any super class constructor. -It must completely match by parameter names and types. -kotlin-native/backend.native/tests/compilerChecks/t33.kt -kotlin-native/backend.native/tests/compilerChecks/t33.kt:7:5: error: constructor with @kotlinx.cinterop.ObjCObjectBase.OverrideInit overrides initializer that is already overridden explicitly -kotlin-native/backend.native/tests/compilerChecks/t34.kt -kotlin-native/backend.native/tests/compilerChecks/t34.kt:7:5: error: only 0, 1 or 2 parameters are supported here -kotlin-native/backend.native/tests/compilerChecks/t35.kt -kotlin-native/backend.native/tests/compilerChecks/t35.kt:5:13: error: unable to call non-designated initializer as super constructor -kotlin-native/backend.native/tests/compilerChecks/t36.kt -kotlin-native/backend.native/tests/compilerChecks/t36.kt:4:13: error: native interop types constructors must not be called directly -kotlin-native/backend.native/tests/compilerChecks/t37.kt -kotlin-native/backend.native/tests/compilerChecks/t37.kt:5:5: error: subclasses of kotlinx.cinterop.NativePointed cannot have properties with backing fields -kotlin-native/backend.native/tests/compilerChecks/t38.kt -kotlin-native/backend.native/tests/compilerChecks/t38.kt:5:5: error: subclasses of kotlinx.cinterop.NativePointed cannot have properties with backing fields -kotlin-native/backend.native/tests/compilerChecks/t4.kt -kotlin-native/backend.native/tests/compilerChecks/t4.kt:4:21: error: callable references to variadic Objective-C methods are not supported -kotlin-native/backend.native/tests/compilerChecks/t40.kt -kotlin-native/backend.native/tests/compilerChecks/t40.kt:8:5: error: kotlinx.cinterop.staticCFunction must take an unbound, non-capturing function or lambda, but captures at: - kotlin-native/backend.native/tests/compilerChecks/t40.kt:8:21 -kotlin-native/backend.native/tests/compilerChecks/t41.kt -kotlin-native/backend.native/tests/compilerChecks/t41.kt:7:5: error: kotlinx.cinterop.staticCFunction must take an unbound, non-capturing function or lambda, but captures at: - kotlin-native/backend.native/tests/compilerChecks/t41.kt:5:17: x -kotlin-native/backend.native/tests/compilerChecks/t42.kt -kotlin-native/backend.native/tests/compilerChecks/t42.kt:6:5: error: c function signature element mismatch: expected 'kotlin.Any', got 'kotlin.String' -kotlin-native/backend.native/tests/compilerChecks/t43.kt -kotlin-native/backend.native/tests/compilerChecks/t43.kt:3:21: error: receiver's type kotlin.Float is not an integer type -kotlin-native/backend.native/tests/compilerChecks/t44.kt -kotlin-native/backend.native/tests/compilerChecks/t44.kt:3:21: error: type argument kotlin.Float is not an integer type -kotlin-native/backend.native/tests/compilerChecks/t45.kt -kotlin-native/backend.native/tests/compilerChecks/t45.kt:3:21: error: unable to sign extend kotlin.Int to kotlin.Short -kotlin-native/backend.native/tests/compilerChecks/t46.kt -kotlin-native/backend.native/tests/compilerChecks/t46.kt:3:21: error: unable to narrow kotlin.Int to kotlin.Long -kotlin-native/backend.native/tests/compilerChecks/t47.kt -kotlin-native/backend.native/tests/compilerChecks/t47.kt:3:21: error: unable to convert kotlin.Int to kotlin.String -kotlin-native/backend.native/tests/compilerChecks/t48.kt -kotlin-native/backend.native/tests/compilerChecks/t48.kt:9:12: error: kotlin.native.concurrent.Worker.execute must take an unbound, non-capturing function or lambda, but captures at: - kotlin-native/backend.native/tests/compilerChecks/t48.kt:9:50 -kotlin-native/backend.native/tests/compilerChecks/t49.kt -kotlin-native/backend.native/tests/compilerChecks/t49.kt:5:12: error: kotlin.native.concurrent.Worker.execute must take an unbound, non-capturing function or lambda, but captures at: - kotlin-native/backend.native/tests/compilerChecks/t49.kt:5:61: x -kotlin-native/backend.native/tests/compilerChecks/t5.kt -kotlin-native/backend.native/tests/compilerChecks/t5.kt:4:83: error: passing String as variadic Objective-C argument is ambiguous; cast it to NSString or pass with '.cstr' as C string -kotlin-native/backend.native/tests/compilerChecks/t50.kt -kotlin-native/backend.native/tests/compilerChecks/t50.kt:11:16: error: kotlin.native.concurrent.Worker.execute must take an unbound, non-capturing function or lambda, but captures at: - kotlin-native/backend.native/tests/compilerChecks/t50.kt:11:54 -kotlin-native/backend.native/tests/compilerChecks/t51.kt:9:28: error: kotlin.native.concurrent.Worker.execute must take an unbound, non-capturing function or lambda, but captures at: - kotlin-native/backend.native/tests/compilerChecks/t51.kt:9:66 -kotlin-native/backend.native/tests/compilerChecks/t52.kt -kotlin-native/backend.native/tests/compilerChecks/t52.kt:5:5: error: kotlin.native.ref.createCleaner must take an unbound, non-capturing function or lambda, but captures at: - kotlin-native/backend.native/tests/compilerChecks/t52.kt:5:33: x -kotlin-native/backend.native/tests/compilerChecks/t53.kt -kotlin-native/backend.native/tests/compilerChecks/t53.kt:9:5: error: kotlin.native.ref.createCleaner must take an unbound, non-capturing function or lambda, but captures at: -kotlin-native/backend.native/tests/compilerChecks/t54.kt -kotlin-native/backend.native/tests/compilerChecks/t54.kt:1:44: error: no spread elements allowed here -kotlin-native/backend.native/tests/compilerChecks/t55.kt -kotlin-native/backend.native/tests/compilerChecks/t55.kt:1:37: error: all elements of binary blob must be constants -kotlin-native/backend.native/tests/compilerChecks/t56.kt -kotlin-native/backend.native/tests/compilerChecks/t56.kt:1:29: error: incorrect value for binary data: 1000 -kotlin-native/backend.native/tests/compilerChecks/t57.kt -kotlin-native/backend.native/tests/compilerChecks/t57.kt:1:13: error: expected at least one element -kotlin-native/backend.native/tests/compilerChecks/t58.kt -kotlin-native/backend.native/tests/compilerChecks/t58.kt:5:5: error: non-reified type parameters with recursive bounds are not supported yet: TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Comparable.foo>] reified:false -kotlin-native/backend.native/tests/compilerChecks/t59.kt -kotlin-native/backend.native/tests/compilerChecks/t59.kt:5:5: error: non-reified type parameters with recursive bounds are not supported yet: TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Comparable.foo>] reified:false -kotlin-native/backend.native/tests/compilerChecks/t6.kt -kotlin-native/backend.native/tests/compilerChecks/t6.kt:4:97: error: when calling variadic Objective-C methods spread operator is supported only for *arrayOf(...) -kotlin-native/backend.native/tests/compilerChecks/t60.kt -kotlin-native/backend.native/tests/compilerChecks/t60.kt:4:5: error: subclasses of kotlinx.cinterop.NativePointed cannot have properties with backing fields -kotlin-native/backend.native/tests/compilerChecks/t61.kt -kotlin-native/backend.native/tests/compilerChecks/t61.kt:8:5: error: only companion objects of subclasses of Objective-C classes can inherit from Objective-C metaclasses -kotlin-native/backend.native/tests/compilerChecks/t62.kt -kotlin-native/backend.native/tests/compilerChecks/t62.kt:7:1: error: only companion objects of subclasses of Objective-C classes can inherit from Objective-C metaclasses -kotlin-native/backend.native/tests/compilerChecks/t63.kt -kotlin-native/backend.native/tests/compilerChecks/t63.kt:24:17: error: calling suspend functions from `autoreleasepool {}` is prohibited, see https://youtrack.jetbrains.com/issue/KT-50786 -kotlin-native/backend.native/tests/compilerChecks/t64.kt -kotlin-native/backend.native/tests/compilerChecks/t64.kt:26:17: error: calling suspend functions from `autoreleasepool {}` is prohibited, see https://youtrack.jetbrains.com/issue/KT-50786 -kotlin-native/backend.native/tests/compilerChecks/t7.kt -kotlin-native/backend.native/tests/compilerChecks/t7.kt:4:41: error: when calling variadic C functions spread operator is supported only for *arrayOf(...) -kotlin-native/backend.native/tests/compilerChecks/t8.kt -kotlin-native/backend.native/tests/compilerChecks/t8.kt:6:5: error: type kotlin.Function0<*> of callback parameter 1 is not supported here: * as return type -kotlin-native/backend.native/tests/compilerChecks/t9.kt -kotlin-native/backend.native/tests/compilerChecks/t9.kt:6:5: error: type kotlin.Function0 of callback parameter 1 is not supported here: out-variance of return type -``` diff --git a/kotlin-native/backend.native/tests/compilerChecks/runtests.sh b/kotlin-native/backend.native/tests/compilerChecks/runtests.sh deleted file mode 100755 index 520df732d37..00000000000 --- a/kotlin-native/backend.native/tests/compilerChecks/runtests.sh +++ /dev/null @@ -1,9 +0,0 @@ -# -# 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. -# - -for TEST in kotlin-native/backend.native/tests/compilerChecks/*.kt; do - echo "$TEST"; - konanc -opt-in=kotlinx.cinterop.ExperimentalForeignApi -opt-in=kotlinx.cinterop.BetaInteropApi -opt-in=kotlin.native.internal.InternalForKotlinNative "$TEST" "$@"; -done