Use NoScopeRecordCliBindingTrace for codegen tests
This commit is contained in:
+6
-1
@@ -1,3 +1,6 @@
|
||||
// !LANGUAGE: -ProperIeee754Comparisons
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
fun greater1(a: Float, b: Float) = a > b
|
||||
|
||||
fun greater2(a: Float?, b: Float?) = a!! > b!!
|
||||
@@ -14,7 +17,9 @@ fun box(): String {
|
||||
if (greater2(0.0F, -0.0F)) return "fail 2"
|
||||
if (greater3(0.0F, -0.0F)) return "fail 3"
|
||||
if (greater4(0.0F, -0.0F)) return "fail 4"
|
||||
if (greater5(0.0F, -0.0F)) return "fail 5"
|
||||
|
||||
// Smart casts behavior in 1.2
|
||||
if (!greater5(0.0F, -0.0F)) return "fail 5"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user