A test for IrVarargElement and IrSpreadElement serializations.
This commit is contained in:
committed by
alexander-gorshenev
parent
7d2b794401
commit
baaee2b816
@@ -2228,6 +2228,12 @@ task serialized_doWhile(type: LinkKonanTest) {
|
|||||||
goldValue = "999\n"
|
goldValue = "999\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task serialized_vararg(type: LinkKonanTest) {
|
||||||
|
source = "serialization/use.kt"
|
||||||
|
lib = "serialization/vararg.kt"
|
||||||
|
goldValue = "17\n19\n23\n29\n31\nsize: 5\n"
|
||||||
|
}
|
||||||
|
|
||||||
task testing_annotations(type: RunStandaloneKonanTest) {
|
task testing_annotations(type: RunStandaloneKonanTest) {
|
||||||
source = "testing/annotations.kt"
|
source = "testing/annotations.kt"
|
||||||
flags = ['-tr']
|
flags = ['-tr']
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
fun bar(vararg x: Int) {
|
||||||
|
x.forEach {
|
||||||
|
println(it)
|
||||||
|
}
|
||||||
|
println("size: ${x.size}")
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun foo() = bar(17, 19, 23, *intArrayOf(29, 31))
|
||||||
|
|
||||||
Reference in New Issue
Block a user