[Tests][Native] NewArtifactOldCompiler: Mute some tests failed in 2.1.0 backend
^KT-74946 Fixed
diff --git a/compiler/testData/codegen/box/basics/kt75483.kt b/compiler/testData/codegen/box/basics/kt75483.kt
index 52d28c4..cc96bfb 100644
--- a/compiler/testData/codegen/box/basics/kt75483.kt
+++ b/compiler/testData/codegen/box/basics/kt75483.kt
@@ -4,6 +4,8 @@
*/
// IGNORE_BACKEND_K2: WASM
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ KT-75483: Bug in 2.1 native backend
interface FeatureFlag<OptionType : Any> {
val default: OptionType
diff --git a/compiler/testData/codegen/box/callableReference/adaptedReferences/extensionInSamWithPassedSupertype.kt b/compiler/testData/codegen/box/callableReference/adaptedReferences/extensionInSamWithPassedSupertype.kt
index a1916da..6c3dabb 100644
--- a/compiler/testData/codegen/box/callableReference/adaptedReferences/extensionInSamWithPassedSupertype.kt
+++ b/compiler/testData/codegen/box/callableReference/adaptedReferences/extensionInSamWithPassedSupertype.kt
@@ -1,3 +1,5 @@
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This test fails under 2.1.0 compiler in FunctionReferenceLowering and passes on 2.2.0 and later
var result = ""
fun interface SamInterface {
diff --git a/compiler/testData/codegen/box/callableReference/function/extensionFunctionInSAMInterface.kt b/compiler/testData/codegen/box/callableReference/function/extensionFunctionInSAMInterface.kt
index 463e3e5..44911598 100644
--- a/compiler/testData/codegen/box/callableReference/function/extensionFunctionInSAMInterface.kt
+++ b/compiler/testData/codegen/box/callableReference/function/extensionFunctionInSAMInterface.kt
@@ -1,3 +1,5 @@
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend with IndexOutOfBoundsException and passes on 2.2.0 and later
var result = ""
fun interface SamInterface {
diff --git a/compiler/testData/codegen/box/callableReference/function/extensionFunctionWithExtensionInSAMInterface.kt b/compiler/testData/codegen/box/callableReference/function/extensionFunctionWithExtensionInSAMInterface.kt
index 508dacf..7bc96ee 100644
--- a/compiler/testData/codegen/box/callableReference/function/extensionFunctionWithExtensionInSAMInterface.kt
+++ b/compiler/testData/codegen/box/callableReference/function/extensionFunctionWithExtensionInSAMInterface.kt
@@ -1,3 +1,5 @@
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend with IndexOutOfBoundsException and passes on 2.2.0 and later
var result = ""
fun interface SamInterface {
diff --git a/compiler/testData/codegen/box/callableReference/function/extensionInDelegatedSam.kt b/compiler/testData/codegen/box/callableReference/function/extensionInDelegatedSam.kt
index 435eb8a..1dda287 100644
--- a/compiler/testData/codegen/box/callableReference/function/extensionInDelegatedSam.kt
+++ b/compiler/testData/codegen/box/callableReference/function/extensionInDelegatedSam.kt
@@ -1,3 +1,5 @@
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend with IndexOutOfBoundsException and passes on 2.2.0 and later
fun interface Base {
fun String.print(): String
}
diff --git a/compiler/testData/codegen/box/coroutines/varSpilling/kt75926.kt b/compiler/testData/codegen/box/coroutines/varSpilling/kt75926.kt
index fedaa5c..0a6dabd 100644
--- a/compiler/testData/codegen/box/coroutines/varSpilling/kt75926.kt
+++ b/compiler/testData/codegen/box/coroutines/varSpilling/kt75926.kt
@@ -1,5 +1,8 @@
// WITH_STDLIB
// WITH_COROUTINES
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend and passes on 2.2.0 and later
+
import helpers.*
import kotlin.coroutines.*
import kotlin.coroutines.intrinsics.*
diff --git a/compiler/testData/codegen/box/defaultArguments/constructor/anonymousObjectAsDefaultParam.kt b/compiler/testData/codegen/box/defaultArguments/constructor/anonymousObjectAsDefaultParam.kt
index 67f212a..3cd3a23 100644
--- a/compiler/testData/codegen/box/defaultArguments/constructor/anonymousObjectAsDefaultParam.kt
+++ b/compiler/testData/codegen/box/defaultArguments/constructor/anonymousObjectAsDefaultParam.kt
@@ -1,4 +1,7 @@
// ISSUE: KT-74739
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// This new test fails in 2.1.0 compiler backend and passes on 2.2.0 and later
+
// FILE: A.kt
open class FooA(val string: String)
diff --git a/compiler/testData/codegen/box/defaultArguments/private/clashingNames.kt b/compiler/testData/codegen/box/defaultArguments/private/clashingNames.kt
index 51a593c..436f7c6 100644
--- a/compiler/testData/codegen/box/defaultArguments/private/clashingNames.kt
+++ b/compiler/testData/codegen/box/defaultArguments/private/clashingNames.kt
@@ -1,3 +1,7 @@
+// ISSUE: KT-77150
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend and passes on 2.2.0 and later
+
// MODULE: lib
// FILE: lib1.kt
diff --git a/compiler/testData/codegen/box/inference/capturedTypeWhenSubject.kt b/compiler/testData/codegen/box/inference/capturedTypeWhenSubject.kt
index a45405f..bdbcaeb 100644
--- a/compiler/testData/codegen/box/inference/capturedTypeWhenSubject.kt
+++ b/compiler/testData/codegen/box/inference/capturedTypeWhenSubject.kt
@@ -1,4 +1,6 @@
// IGNORE_NATIVE: compatibilityTestMode=OldArtifactNewCompiler
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend and passes on 2.2.0 and later
// DUMP_IR
sealed interface OperandType<J> {
fun operand1(instruction: OneOperand<*, *>): J = instruction.operand1 as J
diff --git a/compiler/testData/codegen/box/inline/kt67024.kt b/compiler/testData/codegen/box/inline/kt67024.kt
index 24c769b..6ba4be9 100644
--- a/compiler/testData/codegen/box/inline/kt67024.kt
+++ b/compiler/testData/codegen/box/inline/kt67024.kt
@@ -1,5 +1,8 @@
// Should be fixed in WASM as side effect of KT-74392
// IGNORE_BACKEND: WASM
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend and passes on 2.2.0 and later
+
inline fun <reified T> id(x: T) = x
diff --git a/compiler/testData/codegen/box/inline/kt67866.kt b/compiler/testData/codegen/box/inline/kt67866.kt
index c2426f9..e9fee6b 100644
--- a/compiler/testData/codegen/box/inline/kt67866.kt
+++ b/compiler/testData/codegen/box/inline/kt67866.kt
@@ -1,5 +1,8 @@
// Should be fixed in WASM as side effect of KT-74392
// IGNORE_BACKEND: WASM
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend and passes on 2.2.0 and later
+
inline val <reified T> T.id: T
get() = (this as Any) as T
diff --git a/compiler/testData/codegen/box/inline/kt69041.kt b/compiler/testData/codegen/box/inline/kt69041.kt
index 2f96fb5..b37f4f6 100644
--- a/compiler/testData/codegen/box/inline/kt69041.kt
+++ b/compiler/testData/codegen/box/inline/kt69041.kt
@@ -1,5 +1,7 @@
// Should be fixed in WASM as side effect of KT-74392
// IGNORE_BACKEND: WASM
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend with IndexOutOfBoundsException and passes on 2.2.0 and later
class A {
inline fun <reified T> foo(x: T) = x
diff --git a/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParam.kt b/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParam.kt
index 6b2c282..c0158f4 100644
--- a/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParam.kt
+++ b/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParam.kt
@@ -2,6 +2,8 @@
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend and passes on 2.2.0 and later
// MODULE: lib
// FILE: lib.kt
diff --git a/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParamFull.kt b/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParamFull.kt
index 5666709..6a61156 100644
--- a/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParamFull.kt
+++ b/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParamFull.kt
@@ -2,6 +2,8 @@
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend and passes on 2.2.0 and later
// MODULE: lib
// FILE: lib.kt
diff --git a/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParamSingleFile.kt b/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParamSingleFile.kt
index b81cf61..97b637e 100644
--- a/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParamSingleFile.kt
+++ b/compiler/testData/codegen/box/inlineClasses/anonymousObjectAsDefaultParamSingleFile.kt
@@ -2,6 +2,8 @@
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ This new test fails in 2.1.0 compiler backend and passes on 2.2.0 and later
// FILE: A.kt
open class FooA(val string: String)
diff --git a/compiler/testData/codegen/box/nonLocalReturns/suspendConversion.kt b/compiler/testData/codegen/box/nonLocalReturns/suspendConversion.kt
index 8656233..754cfb8 100644
--- a/compiler/testData/codegen/box/nonLocalReturns/suspendConversion.kt
+++ b/compiler/testData/codegen/box/nonLocalReturns/suspendConversion.kt
@@ -1,6 +1,8 @@
// ISSUE: KT-72464
// IGNORE_BACKEND: WASM
// IGNORE_INLINER: IR
+// IGNORE_NATIVE: compatibilityTestMode=NewArtifactOldCompiler
+// ^^^ KT-72464: Bug in 2.1 native backend
// WITH_STDLIB
// WITH_COROUTINES