[Tests] Add test for KT-57391
^KT-57391
This commit is contained in:
committed by
Space Team
parent
46dc478c03
commit
5fee662223
+6
@@ -38052,6 +38052,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -38052,6 +38052,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -37903,6 +37903,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -37903,6 +37903,12 @@ public class FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGener
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -37903,6 +37903,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
@@ -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"
|
||||||
+6
@@ -37903,6 +37903,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -35953,6 +35953,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -37903,6 +37903,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -37903,6 +37903,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -37903,6 +37903,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+5
@@ -32372,6 +32372,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
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")
|
@TestMetadata("kt60854.kt")
|
||||||
public void testKt60854() {
|
public void testKt60854() {
|
||||||
runTest("compiler/testData/codegen/box/multiplatform/kt60854.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/kt60854.kt");
|
||||||
|
|||||||
+6
@@ -27205,6 +27205,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
Generated
+6
@@ -27205,6 +27205,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -27205,6 +27205,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -27205,6 +27205,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -30264,6 +30264,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -30940,6 +30940,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -29588,6 +29588,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
+6
@@ -30265,6 +30265,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
Generated
+6
@@ -27175,6 +27175,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
Generated
+6
@@ -27175,6 +27175,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
|||||||
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt57391.kt")
|
||||||
|
public void testKt57391() {
|
||||||
|
runTest("compiler/testData/codegen/box/multiplatform/kt57391.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt59613.kt")
|
@TestMetadata("kt59613.kt")
|
||||||
public void testKt59613() {
|
public void testKt59613() {
|
||||||
|
|||||||
Reference in New Issue
Block a user