FIR: Unmute passing blackbox tests

This commit is contained in:
Denis Zharkov
2020-09-22 18:19:03 +03:00
parent be6bef13d3
commit 3dfbd36f15
41 changed files with 9 additions and 54 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface ISized { interface ISized {
val size : Int val size : Int
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface A { interface A {
val result: Any val result: Any
} }
@@ -9,4 +8,4 @@ interface B : A {
abstract class AImpl<out Self : Any>(override val result: Self) : A abstract class AImpl<out Self : Any>(override val result: Self) : A
class BImpl(result: String) : AImpl<String>(result), B class BImpl(result: String) : AImpl<String>(result), B
fun box(): String = (BImpl("OK") as B).result fun box(): String = (BImpl("OK") as B).result
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
open class Content() { open class Content() {
override fun toString() = "OK" override fun toString() = "OK"
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KT-4145 // KT-4145
interface A { interface A {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KT-3985 // KT-3985
interface Trait<T> { interface Trait<T> {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface A { interface A {
fun foo(): Any fun foo(): Any
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
open class A<T> { open class A<T> {
var size: T = 56 as T var size: T = 56 as T
} }
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
import java.util.ArrayList import java.util.ArrayList
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface Named { interface Named {
val name: String val name: String
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR // IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6 // IGNORE_BACKEND: JS_IR_ES6
// Enable for JS when it supports Java class library. // Enable for JS when it supports Java class library.
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
// FILE: J.java // FILE: J.java
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface I<T> { interface I<T> {
val prop: T val prop: T
@@ -37,4 +35,4 @@ fun box(): String {
if (result != "qwe") return "fail3: $result" if (result != "qwe") return "fail3: $result"
return "OK" return "OK"
} }
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface I<T> { interface I<T> {
val prop: T val prop: T
@@ -39,4 +37,4 @@ fun box(): String {
if (result != "qwe") return "fail3: $result" if (result != "qwe") return "fail3: $result"
return "OK" return "OK"
} }
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface I<T> { interface I<T> {
val prop: T val prop: T
@@ -45,4 +43,4 @@ fun box(): String {
if (result != "qwe") return "fail3: $result" if (result != "qwe") return "fail3: $result"
return "OK" return "OK"
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
class MyObject private constructor(val delegate: Interface) : Interface by delegate { class MyObject private constructor(val delegate: Interface) : Interface by delegate {
constructor() : this(Delegate()) constructor() : this(Delegate())
} }
@@ -15,4 +14,4 @@ private interface Interface {
fun box(): String { fun box(): String {
return MyObject().greet() return MyObject().greet()
} }
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
var log = "" var log = ""
fun log(a: String) { fun log(a: String) {
log += a + ";" log += a + ";"
@@ -57,4 +55,4 @@ fun box(): String {
if (log != "C.foo(2);C.foo(1);[2] object:C.foo(2);[2] object:C.foo(1);") return "fail2: $log" if (log != "C.foo(2);C.foo(1);[2] object:C.foo(2);[2] object:C.foo(1);") return "fail2: $log"
return "OK" return "OK"
} }
@@ -16,4 +16,4 @@ fun box(): String {
if (r != "test;C.bar") return "fail: $r" if (r != "test;C.bar") return "fail: $r"
return "OK" return "OK"
} }
@@ -1,5 +1,4 @@
// !LANGUAGE: +InlineClasses // !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_FIR: JVM_IR
inline class A(val s: String) inline class A(val s: String)
@@ -1,5 +1,4 @@
// !LANGUAGE: -AdditionalBuiltInsMembers // !LANGUAGE: -AdditionalBuiltInsMembers
// IGNORE_BACKEND_FIR: JVM_IR
// SKIP_JDK6 // SKIP_JDK6
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// SKIP_JDK6 // SKIP_JDK6
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
// WITH_RUNTIME // WITH_RUNTIME
// FILE: J.java // FILE: J.java
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface Ordinaled { interface Ordinaled {
val ordinal: Int val ordinal: Int
} }
@@ -14,4 +13,4 @@ fun box(): String {
if (result != 0) return "fail 1: $result" if (result != 0) return "fail 1: $result"
return "OK" return "OK"
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: NATIVE // IGNORE_BACKEND: NATIVE
interface Container { interface Container {
-1
View File
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
class MyCollection<T>(val delegate: Collection<T>): Collection<T> by delegate class MyCollection<T>(val delegate: Collection<T>): Collection<T> by delegate
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
import java.util.Arrays import java.util.Arrays
@@ -1,7 +1,6 @@
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
// The old backend thinks `toArray(): Array<Int?>` is the same as `toArray(): Array<Any?>` // The old backend thinks `toArray(): Array<Int?>` is the same as `toArray(): Array<Any?>`
// IGNORE_BACKEND: JVM // IGNORE_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
// FILE: MyListWithCustomToArray.java // FILE: MyListWithCustomToArray.java
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface A { interface A {
var bar: Boolean var bar: Boolean
get() = false get() = false
-2
View File
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface A { interface A {
val result: String get() = "Fail" val result: String get() = "Fail"
} }
+1 -2
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface BK { interface BK {
fun foo(): String = 10.toString() fun foo(): String = 10.toString()
} }
@@ -13,4 +12,4 @@ class A : BK, KTrait {
fun box(): String { fun box(): String {
return if (A().foo() == "30") "OK" else "fail" return if (A().foo() == "30") "OK" else "fail"
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface A { interface A {
fun foo() = "Fail" fun foo() = "Fail"
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
// WITH_RUNTIME // WITH_RUNTIME
// FILE: A.java // FILE: A.java
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface A { interface A {
fun foo(): Any fun foo(): Any
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface A<T> { interface A<T> {
fun f(x: T): T fun f(x: T): T
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// JVM_TARGET: 1.8 // JVM_TARGET: 1.8
fun box(): String { fun box(): String {