[test] Split KMP IR text tests onto K1-only and K2-only groups

^KT-60390
This commit is contained in:
Dmitriy Dolovov
2023-12-08 17:30:04 +01:00
committed by Space Team
parent 79c300209e
commit 0b3d64719f
39 changed files with 256 additions and 250 deletions
@@ -1,33 +0,0 @@
// FIR_IDENTICAL
// IGNORE_BACKEND_K1: JVM_IR, JS_IR
// !LANGUAGE: +MultiPlatformProjects
// KT-61141: NO_ACTUAL_FOR_EXPECT: Expected class 'C' has no actual declaration in module <common> for Native (21,14) in /common.kt
// IGNORE_BACKEND_K1: NATIVE
// MODULE: common
// FILE: common.kt
interface I1 {
fun f(): String
val p: Int
}
interface I2 {
fun f(): String
val p: Int
}
@Suppress("ABSTRACT_MEMBER_NOT_IMPLEMENTED") // Workaround for KT-60390
expect class C() : I1, I2
// MODULE: platform()()(common)
// FILE: platform.kt
actual class C : I1, I2 {
override fun f() = "OK"
override val p = 42
}
@@ -1,4 +1,6 @@
// IGNORE_BACKEND_K2: ANY
// ^^^ In FIR, declaring the same `expect` and `actual` classes in one compiler module is not possible (see KT-55177).
// !LANGUAGE: +MultiPlatformProjects
expect abstract class A protected constructor() {
@@ -1,4 +1,6 @@
// IGNORE_BACKEND_K2: ANY
// ^^^ In FIR, declaring the same `expect` and `actual` classes in one compiler module is not possible (see KT-55177).
// SKIP_KLIB_TEST
// LANGUAGE: +MultiPlatformProjects
@@ -1,6 +1,7 @@
// !LANGUAGE: +MultiPlatformProjects
// IGNORE_BACKEND_K2: ANY
// FIR status: In FIR, declaring the same `expect` and `actual` classes in one compiler module is not possible (see KT-55177).
// ^^^ In FIR, declaring the same `expect` and `actual` classes in one compiler module is not possible (see KT-55177).
// !LANGUAGE: +MultiPlatformProjects
expect enum class MyEnum {
FOO,
@@ -1,4 +1,6 @@
// IGNORE_BACKEND_K2: ANY
// ^^^ In FIR, declaring the same `expect` and `actual` classes in one compiler module is not possible (see KT-55177).
// !LANGUAGE: +MultiPlatformProjects
// SKIP_KLIB_TEST
@@ -0,0 +1,31 @@
// IGNORE_BACKEND_K1: ANY
// ^^^ K1 as well as K1-based test infra do not support "fragment refinement".
// FIR_IDENTICAL
// !LANGUAGE: +MultiPlatformProjects
// MODULE: common
// FILE: common.kt
interface I1 {
fun f(): String
val p: Int
}
interface I2 {
fun f(): String
val p: Int
}
expect class C() : I1, I2 {
override fun f(): String
override val p: Int
}
// MODULE: platform()()(common)
// FILE: platform.kt
actual class C : I1, I2 {
actual override fun f() = "OK"
actual override val p = 42
}
@@ -1,11 +1,10 @@
// IGNORE_BACKEND_K1: ANY
// ^^^ K1 as well as K1-based test infra do not support "fragment refinement".
// FIR_IDENTICAL
// IGNORE_BACKEND_K1: JVM_IR, JS_IR
// SKIP_KLIB_TEST
// LANGUAGE: +MultiPlatformProjects
// KT-61141: NO_ACTUAL_FOR_EXPECT: Expected class 'C1' has no actual declaration in module <common> for Native (9,19) in /common.kt
// IGNORE_BACKEND_K1: NATIVE
// MODULE: common
// FILE: common.kt
@@ -1,6 +1,8 @@
// IGNORE_BACKEND_K1: ANY
// ^^^ K1 as well as K1-based test infra do not support "fragment refinement".
// FIR_IDENTICAL
// !LANGUAGE: +MultiPlatformProjects
// IGNORE_BACKEND_K1: ANY
// MODULE: lib
// FILE: lib.kt