Use NoScopeRecordCliBindingTrace for codegen tests

This commit is contained in:
Dmitry Petrov
2018-02-13 17:50:53 +03:00
parent 10916b2046
commit 8bfbbe456f
31 changed files with 1013 additions and 41 deletions
+6 -1
View File
@@ -1,3 +1,6 @@
// !LANGUAGE: -ProperIeee754Comparisons
// IGNORE_BACKEND: JS
fun equals1(a: Float, b: Float) = a == b
fun equals2(a: Float?, b: Float?) = a!! == b!!
@@ -15,7 +18,9 @@ fun box(): String {
if (!equals2(-0.0F, 0.0F)) return "fail 2"
if (!equals3(-0.0F, 0.0F)) return "fail 3"
if (!equals4(-0.0F, 0.0F)) return "fail 4"
if (!equals5(-0.0F, 0.0F)) return "fail 5"
// Smart casts behavior in 1.2
if (equals5(-0.0F, 0.0F)) return "fail 5"
return "OK"
}