[IR] Print evaluated const directly into interpreter's tests
This commit is contained in:
+7
-7
@@ -3,14 +3,14 @@
|
||||
// TARGET_BACKEND: JS_IR
|
||||
// WITH_STDLIB
|
||||
|
||||
const val code = '1'.code
|
||||
const val floorDiv = 10.floorDiv(2)
|
||||
const val mod = 5.mod(3)
|
||||
const val code = '1'.<!EVALUATED("49")!>code<!>
|
||||
const val floorDiv = 10.<!EVALUATED("5")!>floorDiv(2)<!>
|
||||
const val mod = 5.<!EVALUATED("2")!>mod(3)<!>
|
||||
|
||||
fun box(): String {
|
||||
if (code != 49) return "Fail 1"
|
||||
if (floorDiv != 5) return "Fail 2"
|
||||
if (mod != 2) return "Fail 3"
|
||||
if (<!EVALUATED("false")!>code != 49<!>) return "Fail 1"
|
||||
if (<!EVALUATED("false")!>floorDiv != 5<!>) return "Fail 2"
|
||||
if (<!EVALUATED("false")!>mod != 2<!>) return "Fail 3"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user