Unmute ir-tests after CR support

This commit is contained in:
Mikhael Bogdanov
2018-08-08 12:28:18 +03:00
parent 6b5b9fbde4
commit 357359b1dd
352 changed files with 6 additions and 352 deletions
@@ -1,5 +1,4 @@
// !LANGUAGE: +NewInference
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
open class Base(val fn: () -> String)
fun box(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
open class C(val f: () -> String)
class B(val x: String) {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
abstract class Base(val fn: () -> String)
class Outer {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
open class Outer(val fn: (() -> String)?) {
companion object {
val ok = "Fail: Companion.ok"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
open class Outer(val fn: (() -> String)?) {
companion object {
val ok = "OK"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
package d
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
//KT-3276
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun box() : String {
return apply( "OK", {arg: String -> arg } )
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun box() : String {
return if (apply( 5, {arg: Int -> arg + 13 } ) == 18) "OK" else "fail"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun box() : String {
val cl = 39
return if (sum(200, { val ff = {cl}; ff() }) == 239) "OK" else "FAIL"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun box() : String {
val cl = 39
return if (sum(200, { val m = { val r = { cl }; r() }; m() }) == 239) "OK" else "FAIL"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
class Point(val x:Int, val y:Int) {
fun mul() : (scalar:Int)->Point {
return { scalar:Int -> Point(x * scalar, y * scalar) }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
class Point(val x : Int, val y : Int)
fun box() : String {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
class A {
fun foo() {}
fun bar(f: A.() -> Unit = {}) {}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun box() : String {
fun <T> foo(t:() -> T) : T = t()
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
class Foo(private val s: String) {
inner class Inner {
private val x = {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
open class A(val s: Int) {
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
val o = "O"
val ok_L = {o + "K"}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
val a = 1
val explicitlyReturned = run1 f@{
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
val a = 1
val explicitlyReturned = run1 {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun box() : String {
return invoker( {"OK"} )
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun box() : String {
return if (int_invoker( { 7 } ) == 7) "OK" else "fail"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun foo(block: (String, String, String) -> String): String = block("O", "fail", "K")
fun box() = foo { x, _, y -> x + y }