Drop all tests that disable features for language version less than 3
This commit is contained in:
@@ -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
|
||||
-15
@@ -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
|
||||
-16
@@ -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
|
||||
Reference in New Issue
Block a user