Mute failed jvm ir tests

This commit is contained in:
Mikhael Bogdanov
2018-06-28 11:45:21 +02:00
parent a10c06eb4d
commit e149cbe852
1890 changed files with 1890 additions and 0 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
val foo1 = fun Any.(): String {
return "239" + this
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun Int.thisRef1() = fun () = this
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun Any.foo1() : ()-> String {
return { "239" + this }
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo(block: (String, String, String) -> String): String = block("O", "fail", "K")
fun box() = foo(fun(x: String, _: String, y: String) = x + y)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
val f = fun (s: String): String = s
val g = f as String.() -> String
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A
class B {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class TestClass {
companion object {
inline operator fun <T> invoke(task: () -> T) = task()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class TestClass {
inline operator fun <T> invoke(task: () -> T) = task()
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
package invoke
fun test1(predicate: (Int) -> Int, i: Int) = predicate(i)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
//KT-3217 Invoke convention after function invocation doesn't work
//KT-2728 Can't compile A()()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
//KT-3189 Function invoke is called with no reason
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
//KT-3190 Compiler crash if function called 'invoke' calls a closure
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
//KT-3297 Calling the wrong function inside an extension method to the Function0 class
infix fun <R> Function0<R>.or(alt: () -> R): R {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
//KT-3450 get and invoke are not parsed in one expression
public class A(val s: String) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
//KT-3772 Invoke and overload resolution ambiguity
open class A {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
//KT-1038 Cannot compile lazy iterators
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
package t
interface I{
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
interface A {
val method : (() -> Unit)?
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box() =
B().method()
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class Data
fun newInit(f: Data.() -> Data) = Data().f()
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class Comment() {
var article = ""
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun Any.with(operation : Any.() -> Any) = operation().toString()
val f = { a : Int -> }
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A() {
var x : Int = 0
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun IntRange.forEach(body : (Int) -> Unit) {
for(i in this) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun outer() {
fun inner(i: Int) {
if (i > 0){
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo(f: (Int?) -> Int): Int {
return f(0)
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
infix fun Int.foo(a: Int): Int = a + 2
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
fun String.f() = this
val vf: String.() -> String = { this }
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class Test {
val property:Int
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
var s = ""
var foo = "K"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun box(): String {
var s = ""
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun foo(): String {
fun bar(x: String, y: String = x): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun simple() = fun (): Boolean { return true }
fun withLabel() = l@ fun (): Boolean { return@l true }
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo(x: Int) {}
fun loop(times : Int) {