Test for obsolete KT-17134: java.lang.VerifyError: Bad type on operand stack

#KT-17134 Obsolete
This commit is contained in:
Mikhael Bogdanov
2017-04-01 15:34:56 +02:00
parent 4dcae54ed1
commit 7c3ad97df5
6 changed files with 58 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
//WITH_RUNTIME
// IGNORE_BACKEND: JS
object A {
@JvmStatic fun main(args: Array<String>) {
val b = arrayOf(arrayOf(""))
object {
val c = b[0]
}
}
}
fun box(): String {
A.main(emptyArray())
return "OK"
}
@@ -491,6 +491,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
doTest(fileName);
}
@TestMetadata("kt17134.kt")
public void testKt17134() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt17134.kt");
doTest(fileName);
}
@TestMetadata("kt238.kt")
public void testKt238() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt238.kt");
@@ -491,6 +491,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt17134.kt")
public void testKt17134() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt17134.kt");
doTest(fileName);
}
@TestMetadata("kt238.kt")
public void testKt238() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt238.kt");
@@ -491,6 +491,12 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
doTest(fileName);
}
@TestMetadata("kt17134.kt")
public void testKt17134() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt17134.kt");
doTest(fileName);
}
@TestMetadata("kt238.kt")
public void testKt238() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt238.kt");
@@ -635,6 +635,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
doTest(fileName);
}
@TestMetadata("kt17134.kt")
public void testKt17134() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt17134.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt238.kt")
public void testKt238() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt238.kt");
@@ -276,6 +276,18 @@ public class JsTypedArraysBoxTestGenerated extends AbstractJsTypedArraysBoxTest
doTest(fileName);
}
@TestMetadata("kt17134.kt")
public void testKt17134() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt17134.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt238.kt")
public void testKt238() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt238.kt");