JVM_IR. Support compile time constants

This commit is contained in:
Georgy Bronnikov
2018-09-18 14:49:43 +03:00
parent 623c6803d6
commit ade640eadb
39 changed files with 35 additions and 42 deletions
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
const val M = Char.MIN_VALUE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
const val M = Char.MIN_VALUE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
const val M = Int.MIN_VALUE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
const val M = Int.MIN_VALUE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
const val M = Long.MIN_VALUE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
const val M = Long.MIN_VALUE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
const val M = Char.MAX_VALUE
fun box(): String {
@@ -11,4 +10,4 @@ fun box(): String {
}
if (count != 1) throw AssertionError("Should be executed once")
return "OK"
}
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
const val M = Char.MAX_VALUE
@@ -13,4 +12,4 @@ fun box(): String {
}
if (count != 1) throw AssertionError("Should be executed once")
return "OK"
}
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
const val M = Int.MAX_VALUE
fun box(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
const val M = Int.MAX_VALUE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
const val M = Long.MAX_VALUE
fun box(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
const val M = Long.MAX_VALUE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
const val M = Int.MIN_VALUE