Add tests for obsolete issues

(Test for KT-37331 is added to multiplatform/defaultArguments/suspend.kt.)

 #KT-30080
 #KT-33641
 #KT-36237
 #KT-36952
 #KT-37331
 #KT-38920
 #KT-39256
 #KT-42415
 #KT-44636
 #KT-45704
 #KT-47084
 #KT-47894
This commit is contained in:
Alexander Udalov
2022-03-02 00:34:21 +01:00
parent f0290d8c98
commit 328853dffe
20 changed files with 662 additions and 2 deletions
@@ -2472,6 +2472,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/callableReference/bound/kt15446.kt");
}
@Test
@TestMetadata("kt44636_localExtension.kt")
public void testKt44636_localExtension() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt");
}
@Test
@TestMetadata("multiCase.kt")
public void testMultiCase() throws Exception {
@@ -4765,6 +4771,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/closures/kt47840.kt");
}
@Test
@TestMetadata("kt47894_inlineFunWithObjectWithNothing.kt")
public void testKt47894_inlineFunWithObjectWithNothing() throws Exception {
runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt");
}
@Test
@TestMetadata("kt5589.kt")
public void testKt5589() throws Exception {
@@ -6834,6 +6846,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt");
}
@Test
@TestMetadata("kt45704_elvisInInlineFun.kt")
public void testKt45704_elvisInInlineFun() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt");
}
@Test
@TestMetadata("kt9022And.kt")
public void testKt9022And() throws Exception {
@@ -8825,6 +8843,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt");
}
@Test
@TestMetadata("kt38920_localTailrec.kt")
public void testKt38920_localTailrec() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt");
}
@Test
@TestMetadata("realIteratorFoldl.kt")
public void testRealIteratorFoldl() throws Exception {
@@ -10920,6 +10944,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/dataClasses/toString/mixedParams.kt");
}
@Test
@TestMetadata("primitiveArrays.kt")
public void testPrimitiveArrays() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt");
}
@Test
@TestMetadata("unitComponent.kt")
public void testUnitComponent() throws Exception {
@@ -12557,6 +12587,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt");
}
@Test
@TestMetadata("kt47084_lambdaInDefaultArgument.kt")
public void testKt47084_lambdaInDefaultArgument() throws Exception {
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt");
}
@Test
@TestMetadata("labeledThisReferences.kt")
public void testLabeledThisReferences() throws Exception {
@@ -26572,6 +26608,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
}
@Test
@TestMetadata("kt36952_identityEqualsWithBooleanInLocalFunction.kt")
public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt");
}
@Test
@TestMetadata("kt37505.kt")
public void testKt37505() throws Exception {
@@ -35002,6 +35044,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/reified/kt16445.kt");
}
@Test
@TestMetadata("kt36237.kt")
public void testKt36237() throws Exception {
runTest("compiler/testData/codegen/box/reified/kt36237.kt");
}
@Test
@TestMetadata("kt39256_privateInlineWithAnonymousObject.kt")
public void testKt39256_privateInlineWithAnonymousObject() throws Exception {
runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt");
}
@Test
@TestMetadata("newArrayInt.kt")
public void testNewArrayInt() throws Exception {
@@ -38505,6 +38559,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt");
}
@Test
@TestMetadata("kt33641_inlineClass.kt")
public void testKt33641_inlineClass() throws Exception {
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt");
}
@Test
@TestMetadata("rangeCheckOnSubjectVariable.kt")
public void testRangeCheckOnSubjectVariable() throws Exception {