Drop all tests that disable features for language version less than 3

This commit is contained in:
Ivan Kylchik
2021-12-27 15:54:18 +03:00
parent 549ea1a3b9
commit 6fc56477bf
151 changed files with 0 additions and 5673 deletions
-38
View File
@@ -1,38 +0,0 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// !LANGUAGE: -InlineConstVals
// IGNORE_BACKEND: JS_IR, NATIVE
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
object A {
const val a: String = "$"
const val b = "1234$a"
const val c = 10000
val bNonConst = "1234$a"
val bNullable: String? = "1234$a"
}
object B {
const val a: String = "$"
const val b = "1234$a"
const val c = 10000
val bNonConst = "1234$a"
val bNullable: String? = "1234$a"
}
fun box(): String {
if (A.a !== B.a) return "Fail 1: A.a !== B.a"
if (A.b !== B.b) return "Fail 2: A.b !== B.b"
if (A.c !== B.c) return "Fail 3: A.c !== B.c"
if (A.bNonConst === B.bNonConst) return "Fail 4: A.bNonConst === B.bNonConst"
if (A.bNullable === B.bNullable) return "Fail 5: A.bNullable === B.bNullable"
return "OK"
}
-27
View File
@@ -1,27 +0,0 @@
// !LANGUAGE: -NoDelegationToJavaDefaultInterfaceMembers
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: don't support legacy feature
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// FILE: Base.java
public interface Base {
String getValue();
default String test() {
return getValue();
}
}
// FILE: main.kt
class OK : Base {
override fun getValue() = "OK"
}
fun box(): String {
val z = object : Base by OK() {
override fun getValue() = "Fail"
}
return z.test()
}
@@ -1,11 +0,0 @@
// !LANGUAGE: -AdditionalBuiltInsMembers
// SKIP_JDK6
// TARGET_BACKEND: JVM
// WITH_STDLIB
// FULL_JDK
class A(val x: List<String>) : List<String> by x
fun box(): String {
return A(listOf("OK"))[0]
}
@@ -1,12 +0,0 @@
// !LANGUAGE: -InlineConstVals
// IGNORE_BACKEND_FIR: JVM_IR
// Fir2Ir IrConstTransformer inline everything it can unconditionally
// No fix atm, we don't have to support this feature
const val z = 0
fun a() {
val x = z
}
// 1 GETSTATIC NoInlineKt.z : I
@@ -1,12 +0,0 @@
// !LANGUAGE: -InlineConstVals
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: don't support legacy feature
const val z = 0
fun a() {
if (z == 2) {
}
}
// 1 GETSTATIC NoInlineInCmpKt.z : I
@@ -1,15 +0,0 @@
// !LANGUAGE: -InlineConstVals
// FILE: test.kt
fun test1(a: A) = a.X
fun test2(a: A) = 1 + a.X
fun test3(a: A) = 1 < a.X
// FILE: A.java
public class A {
public final int X = 42;
}
// @TestKt.class:
// 0 42
// 0 43
// 3 GETFIELD A.X
@@ -1,14 +0,0 @@
// !LANGUAGE: -InlineConstVals
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: don't support legacy feature
const val one = 1
const val two = 2
fun test1() {
if (!(one < two)) {
val p = 1
}
}
// 1 IF
@@ -1,16 +0,0 @@
// !LANGUAGE: -InlineConstVals
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: don't support legacy feature
const val y = "cde"
fun foo(x : String) : String {
when (x) {
"abc", "${y}" -> return "abc_cde"
"e" + "fg", "ghi" -> return "efg_ghi"
}
return "other"
}
// 0 LOOKUPSWITCH