Add tests for issues fixed in JVM IR and other obsolete issues

#KT-6007
 #KT-16445
 #KT-17753
 #KT-22488
 #KT-23881
 #KT-24135
 #KT-26360
 #KT-27427
 #KT-27449
 #KT-27830
 #KT-28042
 #KT-29595
 #KT-30708
 #KT-32793
This commit is contained in:
Alexander Udalov
2021-01-07 19:31:59 +01:00
parent 3e59adc7f3
commit 5480faf5c5
36 changed files with 824 additions and 0 deletions
@@ -242,6 +242,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt");
}
@TestMetadata("kt29595.kt")
public void testKt29595() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt");
}
@TestMetadata("kt34656.kt")
public void testKt34656() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt");
@@ -262,6 +267,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt");
}
@TestMetadata("kt6007.kt")
public void testKt6007() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt");
}
@TestMetadata("kt6552.kt")
public void testKt6552() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt");
@@ -992,6 +1002,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt");
}
@TestMetadata("lambdaOnLhs.kt")
public void testLambdaOnLhs() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt");
}
@TestMetadata("map.kt")
public void testMap() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt");
@@ -4452,6 +4467,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt");
}
@TestMetadata("kt30708.kt")
public void testKt30708() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt");
}
@TestMetadata("lambdaTransformation.kt")
public void testLambdaTransformation() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt");
@@ -242,6 +242,11 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt");
}
@TestMetadata("kt29595.kt")
public void testKt29595() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt");
}
@TestMetadata("kt34656.kt")
public void testKt34656() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt");
@@ -262,6 +267,11 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt");
}
@TestMetadata("kt6007.kt")
public void testKt6007() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt");
}
@TestMetadata("kt6552.kt")
public void testKt6552() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt");
@@ -992,6 +1002,11 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt");
}
@TestMetadata("lambdaOnLhs.kt")
public void testLambdaOnLhs() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt");
}
@TestMetadata("map.kt")
public void testMap() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt");
@@ -4452,6 +4467,11 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt");
}
@TestMetadata("kt30708.kt")
public void testKt30708() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt");
}
@TestMetadata("lambdaTransformation.kt")
public void testLambdaTransformation() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt");
@@ -4357,6 +4357,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Closures extends AbstractLightAnalysisModeTest {
@TestMetadata("kt23881.kt")
public void ignoreKt23881() throws Exception {
runTest("compiler/testData/codegen/box/closures/kt23881.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@@ -6540,6 +6545,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Coroutines extends AbstractLightAnalysisModeTest {
@TestMetadata("kt24135.kt")
public void ignoreKt24135() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt24135.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@@ -7165,6 +7175,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ControlFlow extends AbstractLightAnalysisModeTest {
@TestMetadata("doWhileWithInline.kt")
public void ignoreDoWhileWithInline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/doWhileWithInline.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@@ -8490,6 +8505,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Named extends AbstractLightAnalysisModeTest {
@TestMetadata("defaultArgument.kt")
public void ignoreDefaultArgument() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/defaultArgument.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@@ -13637,6 +13657,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt");
}
@TestMetadata("kt32793.kt")
public void ignoreKt32793() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt");
}
@TestMetadata("simpleSecondaryConstructor.kt")
public void ignoreSimpleSecondaryConstructor() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt");
@@ -28131,6 +28156,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/reified/javaClass.kt");
}
@TestMetadata("kt16445.kt")
public void testKt16445() throws Exception {
runTest("compiler/testData/codegen/box/reified/kt16445.kt");
}
@TestMetadata("nestedReified.kt")
public void testNestedReified() throws Exception {
runTest("compiler/testData/codegen/box/reified/nestedReified.kt");
@@ -98,6 +98,12 @@ public class IrSteppingTestGenerated extends AbstractIrSteppingTest {
runTest("compiler/testData/debug/stepping/conjunction.kt");
}
@Test
@TestMetadata("constantConditions.kt")
public void testConstantConditions() throws Exception {
runTest("compiler/testData/debug/stepping/constantConditions.kt");
}
@Test
@TestMetadata("constructorCall.kt")
public void testConstructorCall() throws Exception {
@@ -272,6 +278,12 @@ public class IrSteppingTestGenerated extends AbstractIrSteppingTest {
runTest("compiler/testData/debug/stepping/localFunctionWIthOnelineExpressionBody.kt");
}
@Test
@TestMetadata("multilineExpression.kt")
public void testMultilineExpression() throws Exception {
runTest("compiler/testData/debug/stepping/multilineExpression.kt");
}
@Test
@TestMetadata("multilineFunctionCall.kt")
public void testMultilineFunctionCall() throws Exception {
@@ -98,6 +98,12 @@ public class SteppingTestGenerated extends AbstractSteppingTest {
runTest("compiler/testData/debug/stepping/conjunction.kt");
}
@Test
@TestMetadata("constantConditions.kt")
public void testConstantConditions() throws Exception {
runTest("compiler/testData/debug/stepping/constantConditions.kt");
}
@Test
@TestMetadata("constructorCall.kt")
public void testConstructorCall() throws Exception {
@@ -272,6 +278,12 @@ public class SteppingTestGenerated extends AbstractSteppingTest {
runTest("compiler/testData/debug/stepping/localFunctionWIthOnelineExpressionBody.kt");
}
@Test
@TestMetadata("multilineExpression.kt")
public void testMultilineExpression() throws Exception {
runTest("compiler/testData/debug/stepping/multilineExpression.kt");
}
@Test
@TestMetadata("multilineFunctionCall.kt")
public void testMultilineFunctionCall() throws Exception {
@@ -242,6 +242,11 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt");
}
@TestMetadata("kt29595.kt")
public void testKt29595() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt");
}
@TestMetadata("kt34656.kt")
public void testKt34656() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt");
@@ -262,6 +267,11 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt");
}
@TestMetadata("kt6007.kt")
public void testKt6007() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt");
}
@TestMetadata("kt6552.kt")
public void testKt6552() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt");
@@ -992,6 +1002,11 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt");
}
@TestMetadata("lambdaOnLhs.kt")
public void testLambdaOnLhs() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt");
}
@TestMetadata("map.kt")
public void testMap() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt");
@@ -4452,6 +4467,11 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt");
}
@TestMetadata("kt30708.kt")
public void testKt30708() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt");
}
@TestMetadata("lambdaTransformation.kt")
public void testLambdaTransformation() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt");
@@ -242,6 +242,11 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt");
}
@TestMetadata("kt29595.kt")
public void testKt29595() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt");
}
@TestMetadata("kt34656.kt")
public void testKt34656() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt");
@@ -262,6 +267,11 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt");
}
@TestMetadata("kt6007.kt")
public void testKt6007() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt");
}
@TestMetadata("kt6552.kt")
public void testKt6552() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt");
@@ -992,6 +1002,11 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt");
}
@TestMetadata("lambdaOnLhs.kt")
public void testLambdaOnLhs() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt");
}
@TestMetadata("map.kt")
public void testMap() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt");
@@ -4452,6 +4467,11 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt");
}
@TestMetadata("kt30708.kt")
public void testKt30708() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt");
}
@TestMetadata("lambdaTransformation.kt")
public void testLambdaTransformation() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt");
@@ -242,6 +242,11 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt");
}
@TestMetadata("kt29595.kt")
public void testKt29595() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt");
}
@TestMetadata("kt34656.kt")
public void testKt34656() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt");
@@ -262,6 +267,11 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt");
}
@TestMetadata("kt6007.kt")
public void testKt6007() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt");
}
@TestMetadata("kt6552.kt")
public void testKt6552() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt");
@@ -992,6 +1002,11 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt");
}
@TestMetadata("lambdaOnLhs.kt")
public void testLambdaOnLhs() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt");
}
@TestMetadata("map.kt")
public void testMap() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt");
@@ -4452,6 +4467,11 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt");
}
@TestMetadata("kt30708.kt")
public void testKt30708() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt");
}
@TestMetadata("lambdaTransformation.kt")
public void testLambdaTransformation() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt");
@@ -242,6 +242,11 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt");
}
@TestMetadata("kt29595.kt")
public void testKt29595() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt");
}
@TestMetadata("kt34656.kt")
public void testKt34656() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt");
@@ -262,6 +267,11 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt");
}
@TestMetadata("kt6007.kt")
public void testKt6007() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt");
}
@TestMetadata("kt6552.kt")
public void testKt6552() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt");
@@ -992,6 +1002,11 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt");
}
@TestMetadata("lambdaOnLhs.kt")
public void testLambdaOnLhs() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt");
}
@TestMetadata("map.kt")
public void testMap() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt");
@@ -4452,6 +4467,11 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt");
}
@TestMetadata("kt30708.kt")
public void testKt30708() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt");
}
@TestMetadata("lambdaTransformation.kt")
public void testLambdaTransformation() throws Exception {
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt");