Use NoScopeRecordCliBindingTrace for codegen tests
This commit is contained in:
+6
-1
@@ -1,3 +1,6 @@
|
||||
// !LANGUAGE: -ProperIeee754Comparisons
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
fun less1(a: Double, b: Double) = a < b
|
||||
|
||||
fun less2(a: Double?, b: Double?) = a!! < b!!
|
||||
@@ -14,7 +17,9 @@ fun box(): String {
|
||||
if (less2(-0.0, 0.0)) return "fail 2"
|
||||
if (less3(-0.0, 0.0)) return "fail 3"
|
||||
if (less4(-0.0, 0.0)) return "fail 4"
|
||||
if (less5(-0.0, 0.0)) return "fail 5"
|
||||
|
||||
// Smart casts behavior in 1.2
|
||||
if (!less5(-0.0, 0.0)) return "fail 5"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user