Added test

This commit is contained in:
Igor Chevdar
2017-12-04 15:48:42 +03:00
parent 4c07c70829
commit 05179971c1
2 changed files with 16 additions and 0 deletions
+5
View File
@@ -630,6 +630,11 @@ task enum_linkTest(type: LinkKonanTest) {
lib = "codegen/enum/linkTest_lib.kt"
}
task enum_varargParam(type: RunKonanTest) {
goldValue = "3\n"
source = "codegen/enum/varargParam.kt"
}
task mangling(type: LinkKonanTest) {
goldValue =
"Int direct [1, 2, 3, 4]\n" +
@@ -0,0 +1,11 @@
package codegen.enum.varargParam
import kotlin.test.*
enum class Piece(vararg val states: Int) {
I(3, 4, 5)
}
@Test fun runTest() {
println(Piece.I.states[0])
}