[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
fun foo(x: Int = 42) = x
class C {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
annotation class Anno(val x: Array<String> = emptyArray())
@Anno fun test1() = 1
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
inner class B(val a: String = "a", val b: Int = 55, val c: String = "c")
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A(val a: Int = 0, val b: String = "a")
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
inner class B(val a: Double = 1.0, val b: Int = 55, val c: String = "c")
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
enum class A(val a: Int = 1) {
FIRST(),
SECOND(2)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
enum class Foo(val a: Int = 1, val b: String) {
B(2, "b"),
C(b = "b")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
enum class Foo(val a: Int = 1, val b: String = "a") {
A(),
B(2, "b"),
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
enum class Foo(val a: Double = 1.0, val b: Double = 1.0) {
A(),
B(2.0, 2.0),
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
inner class B(val a: Int = 1,
val b: Int = 2,
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val o = object {
inner class A(val value: String = "OK")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class Foo private constructor(val param: String = "OK") {
companion object {
val s = Foo()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
var inc: String = ""
class X {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class X {
operator fun get(name: String, type: String = "none") = name + type
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class X {
var result: String = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
abstract class Base {
abstract fun foo(a: String = "abc"): String
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// See KT-21968
interface A {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
open class Foo {
open fun foo(x: CharSequence = "O"): CharSequence = x
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
open class Foo {
open fun foo(x: CharSequence = "O"): CharSequence = x
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun Int.foo(a: Int = 1,
b: Int = 2,
c: Int = 3,
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
companion object {
fun Int.foo(a: Int = 1): Int {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
object A {
fun Int.foo(a: Int = 1): Int {
return a
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun Int.foo(a: Int = 1, b: String): Int {
return a
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface Foo {
fun foo(a: Double = 1.0): Double
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM
// See KT-15971
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
fun Int.foo(a: Int = 1): Int {
return a
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
fun Double.foo(a: Double = 1.0): Double {
return a
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
fun Double.foo(a: Double = 1.0, b: Double = 1.0): Double {
return a + b
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
fun Int.foo(a: Int = 1,
b: Int = 2,
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface A {
fun visit(a:String, b:String="") : String = b + a
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A() {
fun foo(a: Int = 1,
b: Int = 2,
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun foo(a: String = "Companion", b: Int = 1, c: Long = 2): String {
return "$a $b $c"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun foo(a: Int = 1,
b: Int = 2,
c: Int = 3,
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface Base {
fun bar(a: String = "abc"): String = a + " from interface"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JVM
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JVM
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JVM
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface I {
fun foo(x: Int = 23): String
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
private fun Int.foo(other: Int = 5): Int = this + other
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KT-5786 NoSuchMethodError: no accessor for private fun with default arguments
class A {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
var state: String = "Fail"
class A private constructor(x: String = "OK") {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
var state: String = "Fail"
class A {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: Foo.kt
package foo
@@ -1,4 +1,5 @@
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
inline fun String.app(f: (String) -> String) = f(this)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface FooTrait<T> {
fun make(size: Int = 16) : T
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
open class Player(val name: String)
open class SlashPlayer(name: String) : Player(name)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
abstract class A<T> {
abstract fun test(a: T, b:Boolean = false) : String
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS, JS_IR, NATIVE
fun f(
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
class X {
fun g(x: () -> Boolean = { super.equals(this) }) = x()
}