[IR] Print evaluated const directly into interpreter's tests

This commit is contained in:
Ivan Kylchik
2023-04-07 17:16:01 +02:00
committed by Space Team
parent 0b70b7904d
commit 5956e9b500
54 changed files with 1459 additions and 1375 deletions
@@ -1,14 +1,11 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_FIR_DIAGNOSTICS
// IGNORE_BACKEND_K1: JVM_IR
// !DIAGNOSTICS: -UNINITIALIZED_ENUM_ENTRY
// IGNORE_BACKEND_K2: JVM_IR
enum class TestEnum(val testNaming: String) {
OK(OK.name),
OK(OK.<!EVALUATED("OK")!>name<!>),
}
const val name = TestEnum.OK.name
fun box(): String {
val name = TestEnum.OK.<!EVALUATED("OK")!>name<!>
return name
}