[FIR] Disable failing blackbox codegen tests for FIR.

This commit is contained in:
Mark Punzalan
2019-11-18 14:35:02 -08:00
committed by Mikhail Glukhikh
parent fc9ccafb84
commit 9df2f69f09
4019 changed files with 4042 additions and 22 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val x: Array<Int>, val y: IntArray)
fun foo(x: Array<Int>, y: IntArray) = A(x, y)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(var string: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Int = 1, val b: String = "$a") {}
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class Bar(val name: String)
abstract class Foo {
@@ -1,4 +1,5 @@
// !LANGUAGE: -ProhibitDataClassesOverridingCopy
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val a: A = B(1)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Double, val b: Double)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Int, val b: String) {}
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(var a: Int, var b: String) {}
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Foo<String>) {}
class Foo<T>(val a: T) { }
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val o: String, val k: String) {
constructor() : this("O", "k")
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val x: Int) {
override fun equals(other: Any?): Boolean = false
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val v: Array<Int>)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val v: IntArray)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val v: Any?)
data class B<T>(val v: T)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class Dummy {
override fun equals(other: Any?) = true
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val arg: Any? = null)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A<T>(val x: T)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val x: Int) {
override fun hashCode(): Int = -3
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Boolean)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Byte)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Char)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Double)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Float)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A<T>(val t: T)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Int)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Long)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Any?, var x: Int)
data class B(val a: Any?)
data class C(val a: Int, var x: Int?)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val a: Short)
fun box() : String {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
import java.io.Serializable
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(var x: Int, val z: Int)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val x: Int, val y: Any?, val z: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val x: Int, val y: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
abstract class Base {
final override fun toString() = "OK"
final override fun hashCode() = 42
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// See KT-6206 Always generate hashCode() and equals() for data classes even if base classes have non-trivial analogs
abstract class Base {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class D(private val x: Long, private val y: Char) {
fun foo() = "${component1()}${component2()}"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val x: Int) {
override fun toString(): String = "!"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(var string: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A<T>(val x: T)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(var x: Int, val z: Int?)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val x: Unit)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val x: Int, val y: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(var x: Int, var y: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
data class A(val x: Unit)
fun box(): String {