diff --git a/compiler/testData/codegen/box/annotations/genericAnnotations.kt b/compiler/testData/codegen/box/annotations/genericAnnotations.kt index debdc72ec92..e00f51eb829 100644 --- a/compiler/testData/codegen/box/annotations/genericAnnotations.kt +++ b/compiler/testData/codegen/box/annotations/genericAnnotations.kt @@ -1,4 +1,5 @@ // IGNORE_LEAKED_INTERNAL_TYPES: KT-54517 +// IGNORE_BACKEND_K2: JS_IR // MODULE: lib // FILE: l1.kt package ann diff --git a/compiler/testData/codegen/box/arrays/arrayInstanceOf.kt b/compiler/testData/codegen/box/arrays/arrayInstanceOf.kt index 406b97e57a4..c08931ce10a 100644 --- a/compiler/testData/codegen/box/arrays/arrayInstanceOf.kt +++ b/compiler/testData/codegen/box/arrays/arrayInstanceOf.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND_K2: JS_IR + //test [], get and iterator calls fun test(createIntNotLong: Boolean): String { val a = if (createIntNotLong) IntArray(5) else LongArray(5) diff --git a/compiler/testData/codegen/box/arrays/kt7288.kt b/compiler/testData/codegen/box/arrays/kt7288.kt index 2c387e56cf9..abcd388dd11 100644 --- a/compiler/testData/codegen/box/arrays/kt7288.kt +++ b/compiler/testData/codegen/box/arrays/kt7288.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND_K2: JS_IR + fun test(b: Boolean): String { val a = if (b) IntArray(5) else LongArray(5) if (a is IntArray) { diff --git a/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInPrimaryConstructorDefaultParameter.kt b/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInPrimaryConstructorDefaultParameter.kt index 0a7a3ac76db..173bee27717 100644 --- a/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInPrimaryConstructorDefaultParameter.kt +++ b/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInPrimaryConstructorDefaultParameter.kt @@ -1,4 +1,5 @@ // IGNORE_BACKEND: JS_IR_ES6 +// IGNORE_BACKEND_K2: JS_IR class Outer(val x: Any) { inner class Inner( diff --git a/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInSecondaryConstructorDefaultParameter.kt b/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInSecondaryConstructorDefaultParameter.kt index 6bee4f40f1a..2e1cb1279d7 100644 --- a/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInSecondaryConstructorDefaultParameter.kt +++ b/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInSecondaryConstructorDefaultParameter.kt @@ -1,4 +1,5 @@ // IGNORE_BACKEND: JS_IR_ES6 +// IGNORE_BACKEND_K2: JS_IR class Outer(val x: Any) { inner class Inner( diff --git a/compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt b/compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt index 7f3bcaaf64e..3f35afcf783 100644 --- a/compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt +++ b/compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR // MODULE: lib // FILE: Typography.kt object Typography { diff --git a/compiler/testData/codegen/box/constants/float.kt b/compiler/testData/codegen/box/constants/float.kt index 830333f86f3..c25ff2c2a51 100644 --- a/compiler/testData/codegen/box/constants/float.kt +++ b/compiler/testData/codegen/box/constants/float.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR // WITH_STDLIB import kotlin.math.* diff --git a/compiler/testData/codegen/box/constants/foldingBinaryOpsUnsignedConst.kt b/compiler/testData/codegen/box/constants/foldingBinaryOpsUnsignedConst.kt index 5070a7cd894..599b9dd423f 100644 --- a/compiler/testData/codegen/box/constants/foldingBinaryOpsUnsignedConst.kt +++ b/compiler/testData/codegen/box/constants/foldingBinaryOpsUnsignedConst.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR // WITH_STDLIB const val a = "INT " + 0x8fffffffU diff --git a/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt b/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt index 74834745753..7711ad2cd7b 100644 --- a/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt +++ b/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR // FILE: lib.kt interface ResolutionScope { fun getContributedDescriptors(s: String = "OK"): String diff --git a/compiler/testData/codegen/box/enum/defaultCtor/noPrimaryConstructor.kt b/compiler/testData/codegen/box/enum/defaultCtor/noPrimaryConstructor.kt index cd17a57dd7a..02b9769d028 100644 --- a/compiler/testData/codegen/box/enum/defaultCtor/noPrimaryConstructor.kt +++ b/compiler/testData/codegen/box/enum/defaultCtor/noPrimaryConstructor.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR enum class Test { A(0), diff --git a/compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithDefaultArguments.kt b/compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithDefaultArguments.kt index fb08b98daab..4c6185b8545 100644 --- a/compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithDefaultArguments.kt +++ b/compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithDefaultArguments.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR enum class Test(val x: Int, val str: String) { OK; constructor(x: Int = 0) : this(x, "OK") diff --git a/compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithVararg.kt b/compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithVararg.kt index 15c5ad34e9c..282a59f6282 100644 --- a/compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithVararg.kt +++ b/compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithVararg.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR enum class Test(val x: Int, val str: String) { OK; constructor(vararg xs: Int) : this(xs.size + 42, "OK") diff --git a/compiler/testData/codegen/box/enum/emptyConstructor.kt b/compiler/testData/codegen/box/enum/emptyConstructor.kt index c82a4ac41c3..3c0089fcb5d 100644 --- a/compiler/testData/codegen/box/enum/emptyConstructor.kt +++ b/compiler/testData/codegen/box/enum/emptyConstructor.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR package test enum class My(val s: String) { diff --git a/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt b/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt index 9f94a9a50fc..eed82a0cf77 100644 --- a/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt +++ b/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // IGNORE_LIGHT_ANALYSIS // IGNORE_BACKEND: JVM +// IGNORE_BACKEND_K2: JS_IR // LANGUAGE: +InlineClassImplementationByDelegation interface I { diff --git a/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt b/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt index eb3ad3810ef..677970340e5 100644 --- a/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt +++ b/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // IGNORE_LIGHT_ANALYSIS // IGNORE_BACKEND: JVM +// IGNORE_BACKEND_K2: JS_IR // LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter interface I { diff --git a/compiler/testData/codegen/box/innerNested/considerPropertyInitValueFromNestedClass.kt b/compiler/testData/codegen/box/innerNested/considerPropertyInitValueFromNestedClass.kt index bab4e25a77d..cabf1da721e 100644 --- a/compiler/testData/codegen/box/innerNested/considerPropertyInitValueFromNestedClass.kt +++ b/compiler/testData/codegen/box/innerNested/considerPropertyInitValueFromNestedClass.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR // ISSUE: KT-52057 // MODULE: lib // FILE: Class.kt diff --git a/compiler/testData/codegen/box/innerNested/innerWithDefaultInner.kt b/compiler/testData/codegen/box/innerNested/innerWithDefaultInner.kt index 733e0efbee8..8d44a4b265e 100644 --- a/compiler/testData/codegen/box/innerNested/innerWithDefaultInner.kt +++ b/compiler/testData/codegen/box/innerNested/innerWithDefaultInner.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR // KT-40686 diff --git a/compiler/testData/codegen/box/intrinsics/tostring.kt b/compiler/testData/codegen/box/intrinsics/tostring.kt index 27f9f1a11a0..5d9e6efa129 100644 --- a/compiler/testData/codegen/box/intrinsics/tostring.kt +++ b/compiler/testData/codegen/box/intrinsics/tostring.kt @@ -1,5 +1,6 @@ // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS +// IGNORE_BACKEND_K2: JS_IR fun box(): String { if (239.toByte().toString() != (239.toByte() as Byte?).toString()) return "byte failed" diff --git a/compiler/testData/codegen/box/ir/enumClass2.kt b/compiler/testData/codegen/box/ir/enumClass2.kt index 122d9bb9477..7ad830bb4e0 100644 --- a/compiler/testData/codegen/box/ir/enumClass2.kt +++ b/compiler/testData/codegen/box/ir/enumClass2.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR // WITH_STDLIB import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/properties/const/intermoduleInlineConst.kt b/compiler/testData/codegen/box/properties/const/intermoduleInlineConst.kt index 5bb6575209b..33595d02017 100644 --- a/compiler/testData/codegen/box/properties/const/intermoduleInlineConst.kt +++ b/compiler/testData/codegen/box/properties/const/intermoduleInlineConst.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND_K2: JS_IR + // MODULE: lib1 // FILE: lib1.kt object L1 { diff --git a/compiler/testData/codegen/box/secondaryConstructors/enums.kt b/compiler/testData/codegen/box/secondaryConstructors/enums.kt index 9fd17a5058e..9b2fbb253ed 100644 --- a/compiler/testData/codegen/box/secondaryConstructors/enums.kt +++ b/compiler/testData/codegen/box/secondaryConstructors/enums.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR enum class A1(val prop1: String) { X("asd"), diff --git a/compiler/testData/codegen/box/when/enumOptimization/kt14802.kt b/compiler/testData/codegen/box/when/enumOptimization/kt14802.kt index aeae43bf5c9..5818daa933a 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/kt14802.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/kt14802.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR // CHECK_CASES_COUNT: function=crash count=2 TARGET_BACKENDS=JS // CHECK_CASES_COUNT: function=crash count=0 IGNORED_BACKENDS=JS // CHECK_IF_COUNT: function=crash count=1 TARGET_BACKENDS=JS diff --git a/compiler/testData/codegen/box/when/enumOptimization/kt15806.kt b/compiler/testData/codegen/box/when/enumOptimization/kt15806.kt index 0d9c08d158b..cde1795146d 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/kt15806.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/kt15806.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND_K2: JS_IR // CHECK_CASES_COUNT: function=doTheThing count=2 TARGET_BACKENDS=JS // CHECK_CASES_COUNT: function=doTheThing count=0 IGNORED_BACKENDS=JS // CHECK_IF_COUNT: function=doTheThing count=2 TARGET_BACKENDS=JS