[test] Mute failing irText tests

This commit is contained in:
Sergej Jaskiewicz
2023-03-13 16:27:27 +01:00
committed by Space Team
parent 7dba138da6
commit b57f436a44
106 changed files with 279 additions and 135 deletions
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM_IR
// SKIP_KLIB_TEST
// Related to KT-49507
// FILE: A.java
@@ -1,4 +1,7 @@
// FIR_IDENTICAL
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun <R : Number> Number.convert(): R = TODO()
fun foo(arg: Number) {
@@ -7,4 +10,4 @@ fun foo(arg: Number) {
fun main(args: Array<String>) {
val x: Int = 0
foo(x.convert())
}
}
+4 -1
View File
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun test() {
val x = intArrayOf(1, 2, 3)
x[1] = 0
@@ -7,4 +10,4 @@ fun foo() = 1
fun test2() {
intArrayOf(1, 2, 3)[foo()] = 1
}
}
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun foo(): IntArray = intArrayOf(1, 2, 3)
fun bar() = 42
@@ -14,4 +17,4 @@ fun testCall() {
fun testMember(c: C) {
c.x[0]++
}
}
@@ -1,4 +1,6 @@
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// !IGNORE_ERRORS
fun test1() {
@@ -25,4 +27,4 @@ fun test3() {
fun test4() {
while (break) {}
while (continue) {}
}
}
@@ -1,5 +1,7 @@
// LANGUAGE: +BreakContinueInInlineLambdas
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// !IGNORE_ERRORS
// WITH_STDLIB
@@ -115,4 +117,4 @@ fun test8() {
while (true) {
baz({break})
}
}
}
@@ -1,4 +1,6 @@
// !LANGUAGE: +AllowBreakAndContinueInsideWhen
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun testBreakFor() {
val xs = IntArray(10) { i -> i }
@@ -1,4 +1,6 @@
// SKIP_KT_DUMP
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
class ObjectAssert<ACTUAL> {
fun describedAs(description: String?, vararg args: Any?): ObjectAssert<ACTUAL>? = null
@@ -1,2 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun test(f: () -> Unit) =
try { f() } catch (e: Exception) { throw e }
try { f() } catch (e: Exception) { throw e }
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
enum class X {
B {
@@ -10,4 +13,4 @@ enum class X {
fun box(): String {
return X.B.value()
}
}
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
enum class MyEnum {
Z {
var counter = 0
@@ -25,4 +28,4 @@ enum class MyEnum {
}
}
}
}
}
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
enum class A { V1 }
fun testVariableAssignment_throws(a: A) {
@@ -76,4 +79,4 @@ fun testLambdaResultExpression_throws(a: A) {
// else -> throw
}
}()
}
}
+3 -1
View File
@@ -1,4 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun testEmpty(ss: List<String>) {
for (s in ss);
@@ -19,4 +21,4 @@ fun testDestructuring(pp: List<Pair<Int, String>>) {
fun testRange() {
for (i in 1..10);
}
}
@@ -1,4 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
object FiveTimes
@@ -14,4 +16,4 @@ fun IReceiver.test() {
for (i in FiveTimes) {
println(i)
}
}
}
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
var p: Int = 0
val arr = intArrayOf(1, 2, 3)
@@ -45,6 +48,7 @@ fun testArrayPostfix() {
val a2 = arr[0]--
}
fun testClassPropPrefix() {
val p1 = ++C().p
val p2 = --C().p
+3 -1
View File
@@ -1,4 +1,6 @@
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
inline fun foo() = false
fun run(x: Boolean, y: Boolean): String {
@@ -15,4 +17,4 @@ fun run(x: Boolean, y: Boolean): String {
fun box(): String {
return run(true, true)
}
}
+3 -1
View File
@@ -1,4 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
interface X {
val xs: MutableList<Any>
@@ -28,4 +30,4 @@ abstract class AML : MutableList<Int> {
this@AML += 300
}
}
}
}
+4 -1
View File
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun <T> magic(): T = throw Exception()
fun <T> test(value: T, value2: T) {
@@ -8,4 +11,4 @@ fun <T> test(value: T, value2: T) {
val x5: Any = magic() ?: 42
val x6: Any = value ?: magic() ?: 42
val x7: Any = magic() ?: value ?: 42
}
}
+4 -1
View File
@@ -1,4 +1,7 @@
// FIR_IDENTICAL
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun a() = "string"
class A {
@@ -8,4 +11,4 @@ class A {
b = this
}
}
}
}
+1
View File
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// FIR status: KT-46419, ILT conversions to Byte and Short are not supported by design
// SKIP_KT_DUMP
+1
View File
@@ -3,6 +3,7 @@
// !LANGUAGE: -ProhibitJvmFieldOnOverrideFromInterfaceInPrimaryConstructor
// SKIP_KT_DUMP
// SKIP_KLIB_TEST
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
interface A { val x: Int }
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// ISSUE: KT-48708
fun test(b: Boolean) {
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// ISSUE: KT-48806
class A {
+2
View File
@@ -1,4 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// SKIP_KT_DUMP
class A {
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
object A
enum class En { X }
@@ -6,4 +9,4 @@ operator fun A.invoke(i: Int) = i
operator fun En.invoke(i: Int) = i
val test1 = A(42)
val test2 = En.X(42)
val test2 = En.X(42)
@@ -1,4 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// !LANGUAGE: +ImplicitSignedToUnsignedIntegerConversion
// FILE: signedToUnsignedConversions_annotation.kt
@@ -53,4 +55,4 @@ fun test() {
// such kind of conversions (Int <-> Long) actually are not supported
// takeLong(IMPLICIT_INT)
}
}
+3 -1
View File
@@ -1,5 +1,7 @@
// FIR_IDENTICAL
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun expectsString(s: String) {}
fun expectsInt(i: Int) {}
@@ -23,4 +25,4 @@ fun test2(x: Any): String {
fun test3(x: Any): String {
if (x !is String) return ""
return x
}
}
@@ -1,5 +1,8 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
val n: Any? = null
enum class En(val x: String?) {
ENTRY(n?.toString())
}
}
+2
View File
@@ -1,4 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun test1() {
try {
@@ -1,4 +1,6 @@
// FIR_IDENTICAL
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// WITH_STDLIB
val testSimpleUIntLiteral = 1u
+4 -1
View File
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
enum class Enum { A }
object A
val a = 0
@@ -8,4 +11,4 @@ class Z {
fun test1() = Enum.A
fun test2() = A
fun test3() = a
fun test4() = Z
fun test4() = Z
@@ -1,4 +1,6 @@
// FIR_IDENTICAL
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun testScalar(a: Any): IntArray {
if (a !is Int) return intArrayOf()
@@ -8,4 +10,4 @@ fun testScalar(a: Any): IntArray {
fun testSpread(a: Any): IntArray {
if (a !is IntArray) return intArrayOf()
return intArrayOf(*a)
}
}
+3 -1
View File
@@ -1,4 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
object A
@@ -28,4 +30,4 @@ fun testComma(x: Int) =
5, 6, 7 -> "567"
8, 9 -> "89"
else -> "?"
}
}
@@ -1,4 +1,6 @@
// FIR_IDENTICAL
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
fun run(block: () -> Unit) {}
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
enum class En { A, B, C }
fun test() {