Add test on obsolete issue

#KT-15196 Obsolete
This commit is contained in:
Denis Zharkov
2017-02-08 18:37:32 +03:00
parent b989bfce59
commit 1f179a6f01
5 changed files with 33 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// WITH_RUNTIME
fun foo() {
val array = Array(0, { IntArray(0) } )
array.forEach { println(it.asList()) }
}
fun box(): String {
foo() // just to be sure, that no exception happens
return "OK"
}
@@ -0,0 +1,5 @@
@kotlin.Metadata
public final class Kt15196Kt {
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
public final static method foo(): void
}
@@ -15386,6 +15386,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
doTest(fileName);
}
@TestMetadata("kt15196.kt")
public void testKt15196() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt15196.kt");
doTest(fileName);
}
@TestMetadata("kt1528.kt")
public void testKt1528() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt1528.kt");
@@ -15386,6 +15386,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt15196.kt")
public void testKt15196() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt15196.kt");
doTest(fileName);
}
@TestMetadata("kt1528.kt")
public void testKt1528() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt1528.kt");
@@ -19377,6 +19377,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt15196.kt")
public void testKt15196() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt15196.kt");
doTest(fileName);
}
@TestMetadata("kt1528.kt")
public void testKt1528() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt1528.kt");