Add tests for issues fixed in JVM IR
Note that KT-30696 is fixed only in the single-module case, and KT-42012 is not fixed fully (see KT-44855). #KT-30041 #KT-30629 #KT-30696 #KT-30933 #KT-32351 #KT-32749 #KT-38849 #KT-42012 #KT-42990 #KT-44234 #KT-44529 #KT-44631 #KT-44647
This commit is contained in:
+55
@@ -2415,6 +2415,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Bound extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("genericBoundPropertyAsCrossinline.kt")
|
||||
public void ignoreGenericBoundPropertyAsCrossinline() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/genericBoundPropertyAsCrossinline.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -5506,6 +5511,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Contracts extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("nestedLambdaInNonInlineCallExactlyOnce.kt")
|
||||
public void ignoreNestedLambdaInNonInlineCallExactlyOnce() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -8656,6 +8666,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Named extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("callTopLevelFromLocal.kt")
|
||||
public void ignoreCallTopLevelFromLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/callTopLevelFromLocal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultArgument.kt")
|
||||
public void ignoreDefaultArgument() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/defaultArgument.kt");
|
||||
@@ -13946,6 +13961,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customIterator.kt")
|
||||
public void ignoreCustomIterator() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/customIterator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassWithCustomEquals.kt")
|
||||
public void ignoreInlineClassWithCustomEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt");
|
||||
@@ -18888,6 +18908,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class JvmStatic extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("extensionPropertyGetter.kt")
|
||||
public void ignoreExtensionPropertyGetter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmStatic/extensionPropertyGetter.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -19250,6 +19275,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/localClasses/closureWithSelfInstantiation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultParameterInConstructor.kt")
|
||||
public void ignoreDefaultParameterInConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/defaultParameterInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt10835.kt")
|
||||
public void ignoreKt10835() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt10835.kt");
|
||||
@@ -20530,6 +20560,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Objects extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("kt32351.kt")
|
||||
public void ignoreKt32351() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/kt32351.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt32749.kt")
|
||||
public void ignoreKt32749() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/kt32749.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -21350,6 +21390,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class OperatorConventions extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("kt44647.kt")
|
||||
public void ignoreKt44647() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/operatorConventions/kt44647.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -22974,6 +23019,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/properties/lateinit/kt30548.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateVarInCompanion.kt")
|
||||
public void ignorePrivateVarInCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -32039,6 +32089,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ProtectedAndPackage extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("kt42012.kt")
|
||||
public void ignoreKt42012() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/visibility/protectedAndPackage/kt42012.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user