[KLIB] Add regression test
This commit is contained in:
Generated
+5
@@ -13763,6 +13763,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("signatureClash.kt")
|
||||
public void testSignatureClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/signatureClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("transitiveClash.kt")
|
||||
public void testTransitiveClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/transitiveClash.kt");
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
open class Base<T> {
|
||||
open fun foo(p1: T): String { return "p1:$p1" }
|
||||
open fun foo(p2: String): String { return "p2:$p2" }
|
||||
}
|
||||
class Derived : Base<String>()
|
||||
|
||||
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
|
||||
fun box(): String {
|
||||
val d = Derived()
|
||||
if (d.foo(p1 = "42") != "p1:42") return "FAIL1"
|
||||
if (d.foo(p2 = "24") != "p2:24") return "FAIL2"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
+5
@@ -14908,6 +14908,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("signatureClash.kt")
|
||||
public void testSignatureClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/signatureClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("transitiveClash.kt")
|
||||
public void testTransitiveClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/transitiveClash.kt");
|
||||
|
||||
+5
-45
@@ -9592,21 +9592,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/funInTraitChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15971.kt")
|
||||
public void ignoreKt15971() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/kt15971.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15971_2.kt")
|
||||
public void ignoreKt15971_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/kt15971_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15971_3.kt")
|
||||
public void ignoreKt15971_3() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/kt15971_3.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -9695,16 +9680,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionManyArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt36188.kt")
|
||||
public void testKt36188() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/kt36188.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt36188_2.kt")
|
||||
public void testKt36188_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/kt36188_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5232.kt")
|
||||
public void testKt5232() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/function/kt5232.kt");
|
||||
@@ -14913,6 +14888,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("signatureClash.kt")
|
||||
public void testSignatureClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/signatureClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useImportedMember.kt")
|
||||
public void testUseImportedMember() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/useImportedMember.kt");
|
||||
@@ -19416,21 +19396,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/number.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("numberEqualsHashCodeToString.kt")
|
||||
public void testNumberEqualsHashCodeToString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberEqualsHashCodeToString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rangeTo.kt")
|
||||
public void testRangeTo() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/rangeTo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringEqualsHashCodeToString.kt")
|
||||
public void testStringEqualsHashCodeToString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/stringEqualsHashCodeToString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("substituteIntForGeneric.kt")
|
||||
public void testSubstituteIntForGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/substituteIntForGeneric.kt");
|
||||
@@ -21993,16 +21963,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/ranges/unsigned/kt35004.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt36953.kt")
|
||||
public void testKt36953() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/unsigned/kt36953.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt36953_continue.kt")
|
||||
public void testKt36953_continue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/unsigned/kt36953_continue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/unsigned/expression")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+5
@@ -13763,6 +13763,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("signatureClash.kt")
|
||||
public void testSignatureClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/signatureClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("transitiveClash.kt")
|
||||
public void testTransitiveClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/transitiveClash.kt");
|
||||
|
||||
Generated
+5
@@ -11923,6 +11923,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("signatureClash.kt")
|
||||
public void testSignatureClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/signatureClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("transitiveClash.kt")
|
||||
public void testTransitiveClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/transitiveClash.kt");
|
||||
|
||||
+5
@@ -11988,6 +11988,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("signatureClash.kt")
|
||||
public void testSignatureClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/signatureClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("transitiveClash.kt")
|
||||
public void testTransitiveClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/serializationRegressions/transitiveClash.kt");
|
||||
|
||||
Reference in New Issue
Block a user