Use NoScopeRecordCliBindingTrace for codegen tests
This commit is contained in:
+6
-1
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user