backend/tests: Add blackbox tests from Kotlin JVM

Added tests from testData/codegen/box directory. There are blackbox tests
in other directories and they are to be added.
This commit is contained in:
Ilya Matveev
2017-01-12 19:43:20 +07:00
parent d5988297b1
commit 1b553ebfaf
2643 changed files with 66666 additions and 0 deletions
@@ -0,0 +1,15 @@
fun box(): String {
main(array())
return "OK"
}
fun main(args: Array<String>) {
D.foo(array())
}
object D {
fun foo(array: Array<out String>) = array
}
@Suppress("UNCHECKED_CAST")
inline fun <reified T> array(vararg t : T) : Array<T> = t as Array<T>
@@ -0,0 +1,13 @@
package
@kotlin.Suppress(names = {"UNCHECKED_CAST"}) public inline fun </*0*/ reified T> array(/*0*/ vararg t: T /*kotlin.Array<out T>*/): kotlin.Array<T>
public fun box(): kotlin.String
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
public object D {
private constructor D()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public final fun foo(/*0*/ array: kotlin.Array<out kotlin.String>): kotlin.Array<out kotlin.String>
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}