JS IR: mute codegen box tests automatically

This commit is contained in:
Anton Bannykh
2018-06-07 14:17:45 +03:00
parent 7e1713af44
commit 96355e2732
2384 changed files with 2384 additions and 0 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
annotation class A(val a: Int = 0)
@A fun test1() = 1
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
annotation class Anno(val x: Array<String> = emptyArray())
@Anno fun test1() = 1
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A(val a: Int = 0)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A {
inner class B(val a: String = "a", val b: Int = 55, val c: String = "c")
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A(val a: Int = 0, val b: String = "a")
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_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: JS_IR
enum class A(val a: Int = 1) {
FIRST(),
SECOND(2)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
enum class Foo(val a: Int = 1, val b: String) {
B(2, "b"),
C(b = "b")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
enum class Foo(val a: Int = 1, val b: String = "a") {
A(),
B(2, "b"),
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_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: JS_IR
fun box(): String {
val o = object {
inner class A(val value: String = "OK")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Foo private constructor(val param: String = "OK") {
companion object {
val s = Foo()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
var inc: String = ""
class X {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class X {
operator fun get(name: String, type: String = "none") = name + type
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class X {
var result: String = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
abstract class Base {
abstract fun foo(a: String = "abc"): String
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class Foo {
open fun foo(x: CharSequence = "O"): CharSequence = x
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class Foo {
open fun foo(x: CharSequence = "O"): CharSequence = x
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun Int.foo(a: Int = 1,
b: Int = 2,
c: Int = 3,
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun Int.foo(a: Int = 1): Int {
return a
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun Double.foo(a: Double = 1.0): Double {
return a
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun Double.foo(a: Double = 1.0, b: Double = 1.0): Double {
return a + b
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A {
companion object {
fun Int.foo(a: Int = 1): Int {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
object A {
fun Int.foo(a: Int = 1): Int {
return a
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun Int.foo(a: Int = 1, b: String): Int {
return a
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface Foo {
fun foo(a: Double = 1.0): Double
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM
// See KT-15971
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A {
fun Int.foo(a: Int = 1): Int {
return a
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A {
fun Double.foo(a: Double = 1.0): Double {
return a
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A {
fun Double.foo(a: Double = 1.0, b: Double = 1.0): Double {
return a + b
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A {
fun Int.foo(a: Int = 1,
b: Int = 2,
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface A {
fun visit(a:String, b:String="") : String = b + a
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A() {
fun foo(a: Int = 1,
b: Int = 2,
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun foo(a: String = "Companion", b: Int = 1, c: Long = 2): String {
return "$a $b $c"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun foo(a: Int = 1,
b: Int = 2,
c: Int = 3,
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface Base {
fun bar(a: String = "abc"): String = a + " from interface"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM
interface I<T> {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM
interface I<T> {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM
interface I<T> {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface I {
fun foo(x: Int = 23): String
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A {
private fun Int.foo(other: Int = 5): Int = this + other
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// KT-5786 NoSuchMethodError: no accessor for private fun with default arguments
class A {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
var state: String = "Fail"
class A private constructor(x: String = "OK") {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
var state: String = "Fail"
class A {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface FooTrait<T> {
fun make(size: Int = 16) : T
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class Player(val name: String)
open class SlashPlayer(name: String) : Player(name)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
fun box() = ok()