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
@@ -5124,6 +5124,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/closures/kt2151.kt");
}
@Test
@TestMetadata("kt23881.kt")
public void testKt23881() throws Exception {
runTest("compiler/testData/codegen/box/closures/kt23881.kt");
}
@Test
@TestMetadata("kt3152.kt")
public void testKt3152() throws Exception {
@@ -7818,6 +7824,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/coroutines/kt21605.kt");
}
@Test
@TestMetadata("kt24135.kt")
public void testKt24135() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt24135.kt");
}
@Test
@TestMetadata("kt25912.kt")
public void testKt25912() throws Exception {
@@ -8257,6 +8269,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.kt");
}
@Test
@TestMetadata("doWhileWithInline.kt")
public void testDoWhileWithInline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/doWhileWithInline.kt");
}
@Test
@TestMetadata("doubleBreak.kt")
public void testDoubleBreak() throws Exception {
@@ -9740,6 +9758,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/capturedVariables.kt");
}
@Test
@TestMetadata("defaultArgument.kt")
public void testDefaultArgument() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/defaultArgument.kt");
}
@Test
@TestMetadata("extension.kt")
public void testExtension() throws Exception {
@@ -16236,6 +16260,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt");
}
@Test
@TestMetadata("kt32793.kt")
public void testKt32793() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt");
}
@Test
@TestMetadata("kt33119.kt")
public void testKt33119() throws Exception {
@@ -34280,6 +34310,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/reified/javaClass.kt");
}
@Test
@TestMetadata("kt16445.kt")
public void testKt16445() throws Exception {
runTest("compiler/testData/codegen/box/reified/kt16445.kt");
}
@Test
@TestMetadata("nestedReified.kt")
public void testNestedReified() throws Exception {
@@ -4538,6 +4538,12 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/multipleExclExcl_1_4.kt");
}
@Test
@TestMetadata("noNullCheckAfterCast.kt")
public void testNoNullCheckAfterCast() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/noNullCheckAfterCast.kt");
}
@Test
@TestMetadata("notNullAsNotNullable.kt")
public void testNotNullAsNotNullable() throws Exception {