[Tests] Add test for KT-57391

^KT-57391
This commit is contained in:
Vladimir Sukharev
2024-03-12 10:18:54 +01:00
committed by Space Team
parent 46dc478c03
commit 5fee662223
22 changed files with 153 additions and 0 deletions
@@ -37903,6 +37903,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
}
@Test
@TestMetadata("kt57391.kt")
public void testKt57391() {
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
}
@Test
@TestMetadata("kt59613.kt")
public void testKt59613() {
@@ -37903,6 +37903,12 @@ public class FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGener
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
}
@Test
@TestMetadata("kt57391.kt")
public void testKt57391() {
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
}
@Test
@TestMetadata("kt59613.kt")
public void testKt59613() {
@@ -37903,6 +37903,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
}
@Test
@TestMetadata("kt57391.kt")
public void testKt57391() {
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
}
@Test
@TestMetadata("kt59613.kt")
public void testKt59613() {
+28
View File
@@ -0,0 +1,28 @@
// LANGUAGE: +MultiPlatformProjects
// ISSUE: KT-57391
// WITH_STDLIB
// KT-57391: CONFLICTING_OVERLOADS
// IGNORE_BACKEND_K1: JS_IR, JS_IR_ES6, WASM
// KT-57391: java.lang.IllegalStateException: IrSimpleFunctionPublicSymbolImpl for /main|main(){}[0] is already bound
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6, WASM
// KT-57391: Backend Internal error: Exception during psi2ir
// in K1/NATIVE/ONE_STAGE_MULTI_MODULE, native testsystem ignores fun `main` in `common` module, hence `common` module is not compiled at all.
// IGNORE_NATIVE_K1: mode=TWO_STAGE_MULTI_MODULE
// KT-57391: error: platform declaration clash: The following functions have the same IR signature
// IGNORE_BACKEND_K2: NATIVE
// MODULE: common
// FILE: common.kt
fun main() {
println("Hello, Foo")
}
// MODULE: platform()()(common)
// FILE: platform.kt
fun main() {
println("Hello, Kotlin/Native!")
}
fun box() = "OK"
@@ -37903,6 +37903,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
}
@Test
@TestMetadata("kt57391.kt")
public void testKt57391() {
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
}
@Test
@TestMetadata("kt59613.kt")
public void testKt59613() {
@@ -35953,6 +35953,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
}
@Test
@TestMetadata("kt57391.kt")
public void testKt57391() {
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
}
@Test
@TestMetadata("kt59613.kt")
public void testKt59613() {
@@ -37903,6 +37903,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
}
@Test
@TestMetadata("kt57391.kt")
public void testKt57391() {
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
}
@Test
@TestMetadata("kt59613.kt")
public void testKt59613() {
@@ -37903,6 +37903,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
}
@Test
@TestMetadata("kt57391.kt")
public void testKt57391() {
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
}
@Test
@TestMetadata("kt59613.kt")
public void testKt59613() {
@@ -37903,6 +37903,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
}
@Test
@TestMetadata("kt57391.kt")
public void testKt57391() {
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
}
@Test
@TestMetadata("kt59613.kt")
public void testKt59613() {
@@ -32372,6 +32372,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
}
@TestMetadata("kt57391.kt")
public void testKt57391() {
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
}
@TestMetadata("kt60854.kt")
public void testKt60854() {
runTest("compiler/testData/codegen/box/multiplatform/kt60854.kt");