KT-57487: Add codegen test

Merge-request: KT-MR-9300
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-03-23 10:03:00 +00:00
committed by Space Team
parent a2e2a96fd3
commit 9407ec35e3
14 changed files with 86 additions and 0 deletions
@@ -47113,6 +47113,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
@@ -47113,6 +47113,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
+10
View File
@@ -0,0 +1,10 @@
// KT-57487: Stdlib ArraysTest fails with `Class found but error nodes are not allowed`
// IGNORE_BACKEND_K2: NATIVE, JS_IR
// Minimized from libraries.stdlib.test.collections.ArraysTest.sortedTests()
// Exception is: Class found but error nodes are not allowed
fun <T: Comparable<T>> arrayData(vararg values: T, toArray: Array<T>.() -> Unit) {}
fun box(): String {
arrayData(42) { }
return "OK"
}
@@ -44767,6 +44767,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
@@ -47113,6 +47113,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
@@ -47113,6 +47113,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
@@ -36120,6 +36120,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
}
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt5786_privateWithDefault.kt");
@@ -33585,6 +33585,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/regressions/kt5395.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
@@ -33771,6 +33771,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/regressions/kt5395.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
@@ -33771,6 +33771,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/regressions/kt5395.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
@@ -33771,6 +33771,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/regressions/kt5395.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
@@ -37769,6 +37769,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/regressions/kt5395.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
@@ -37305,6 +37305,12 @@ public class K1NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
runTest("compiler/testData/codegen/box/regressions/kt5395.kt");
}
@Test
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@Test
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
@@ -30240,6 +30240,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/regressions/kt5395.kt");
}
@TestMetadata("kt57487.kt")
public void testKt57487() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
}
@TestMetadata("kt5786_privateWithDefault.kt")
public void testKt5786_privateWithDefault() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt5786_privateWithDefault.kt");