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
open class A {
var f: String = "OK"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
companion object {
fun ok() = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// LANGUAGE_VERSION: 1.2
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS
enum class E {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: 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: investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: 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
// IGNORE_BACKEND: NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class X {
val result: String
inline get() = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
inline fun foo(x: () -> String) = x()
fun String.id() = this
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
inline fun go(f: () -> String) = f()
fun String.id(): String = this
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// SKIP_SOURCEMAP_REMAPPING
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun <T> get(t: T): () -> String {
return t::toString
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
//WITH_RUNTIME
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
class A(var v: Int) {
fun f(x: Int) = x * v
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
val String?.ok: String
get() = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
object Singleton {
fun ok() = "OK"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun Boolean.foo() = 1
fun Byte.foo() = 2
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun box(): String {
val f = "KOTLIN"::get
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun box(): String {
val f = "kotlin"::length
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
class B
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: A.java
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
abstract class A {
abstract fun foo(): String
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun box(): String {
if ((Boolean::not)(true) != false) return "Fail 1"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
fun foo(k: Int) = k
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
fun o() = 111
fun k(k: Int) = k
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
fun foo() = "OK"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
fun foo(result: String) = result
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
var result = "Fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
var result = "Fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
var result = "OK"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A(val result: String)
fun box() = (::A)("OK").result
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
enum class E {
ENTRY
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
class A
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
fun result() = (A::foo)(this, "OK")
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A
fun A.foo() = (A::bar)(this, "OK")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A
fun A.foo() = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A
fun A.foo(result: String) = result
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
var result = "Fail"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
var result = "Fail"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A<T>(val t: T) {
fun foo(): T = t
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
@@ -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
abstract class A {
inner class InnerInA {
fun returnOk() = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
inner class Inner {
val o = 111
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
inner class Inner {
val o = 111
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
inner class Inner {
val o = 111
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
class A {
inner class Inner(val result: Int)
@@ -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 Outer {
val result = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
class Local {
fun foo() = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
var result = "Fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
class A {
val result = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
class A {
var result: String = "Fail";
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
class A
fun A.foo() = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
fun Int.is42With(that: Int) = this + 2 * that == 42
return if ((Int::is42With)(16, 13)) "OK" else "Fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
class Id<T> {
fun invoke(t: T) = t
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
val result = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
fun foo(): String {
fun bar() = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo(until: Int): String {
fun bar(x: Int): String =
if (x == until) "OK" else bar(x + 1)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
fun foo() = "OK"
return (::foo)()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
val result = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
fun foo(s: String) = s
return (::foo)("OK")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
var state = 23
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
class Nested {
val o = 111
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
class Nested {
val result = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
class Nested(val result: String)
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
private fun <T> upcast(value: T): T = value
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun foo(): String = "foo1"
fun foo(i: Int): String = "foo2"
@@ -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
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A {
private fun foo() = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun baz(i: Int) = i
fun <T> bar(x: T): T = x
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo(o: Int, k: Int) = o + k
class A {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo(o: Int, k: Int) = o + k
class A
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo() = "OK"
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo(x: String) = x
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
var result = "Fail"
fun foo() {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
var result = "Fail"
fun foo(newResult: String) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
interface T {
fun foo() = "OK"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
interface A {
fun foo(): String
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
abstract class Base {
val result = "OK"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
import kotlin.reflect.KProperty
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
import kotlin.reflect.KProperty
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
enum class E {
I
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
val Array<String>.firstElement: String get() = get(0)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
//For KT-6020
import kotlin.reflect.KProperty1
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
var state = ""
var topLevel: Int
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// Name of the getter should be 'getaBcde' according to JavaBean conventions
var aBcde: Int = 239
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
import kotlin.reflect.KProperty1
class A {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// KT-12044 Assertion "Rewrite at slice LEXICAL_SCOPE" for 'if' with property references
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class Foo {
protected var x = 0
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
data class Foo(var bar: Int?)
fun box(): String {

Some files were not shown because too many files have changed in this diff Show More