Tests for boxing optimization on KClass are JVM-specific

This commit is contained in:
Dmitry Petrov
2017-09-06 14:20:05 +03:00
parent 61faa068d4
commit 8c5d18c1f2
3 changed files with 2 additions and 26 deletions
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
fun test(a: Any) = when (a::class) {
String::class -> "String"
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
fun box(): String {
42.doSwitchInt()
@@ -1148,36 +1148,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
doTest(fileName);
}
@TestMetadata("kClassEquals.kt")
public void testKClassEquals() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/kClassEquals.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("kt15871.kt")
public void testKt15871() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/kt15871.kt");
doTest(fileName);
}
@TestMetadata("kt17748.kt")
public void testKt17748() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/kt17748.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("kt19767.kt")
public void testKt19767() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/kt19767.kt");