Test on link stage.

This commit is contained in:
Igor Chevdar
2017-03-07 20:02:20 +03:00
parent 6bb32743fd
commit bc0772eab1
3 changed files with 18 additions and 0 deletions
+6
View File
@@ -681,6 +681,12 @@ task propertyCallableReference_varExtension(type: RunKonanTest) {
source = "codegen/propertyCallableReference/varExtension.kt"
}
task propertyCallableReference_linkTest(type: LinkKonanTest) {
goldValue = "42\n117\n"
source = "codegen/propertyCallableReference/linkTest_main.kt"
lib = "codegen/propertyCallableReference/linkTest_lib.kt"
}
task array0(type: RunKonanTest) {
goldValue = "5\n6\n7\n8\n9\n10\n11\n12\n13\n"
source = "runtime/collections/array0.kt"
@@ -0,0 +1,3 @@
package a
class A(val x: Int)
@@ -0,0 +1,9 @@
import a.A
fun main(args: Array<String>) {
val p1 = A::x
println(p1.get(A(42)))
val a = A(117)
val p2 = a::x
println(p2.get())
}