Add more init tests.

This commit is contained in:
Nikolay Igotti
2016-12-28 15:26:07 +03:00
parent c0914825d9
commit ddf47e9359
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -762,6 +762,12 @@ task initializers3(type: RunKonanTest) {
source = "runtime/basic/initializers3.kt"
}
task initializers4(type: RunKonanTest) {
disabled = true
goldValue = "fixme\n"
source = "runtime/basic/initializers4.kt"
}
task expression_as_statement(type: RunKonanTest) {
disabled = true
goldValue = "Ok\n"
@@ -0,0 +1,7 @@
const val INT_MAX_POWER_OF_TWO: Int = Int.MAX_VALUE / 2 + 1
val DOUBLE = Double.MAX_VALUE - 1.0
fun main(args: Array<String>) {
println(INT_MAX_POWER_OF_TWO)
println(DOUBLE > 0.0)
}