Use NoScopeRecordCliBindingTrace for codegen tests
This commit is contained in:
@@ -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!!
|
||||
@@ -20,11 +23,16 @@ 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"
|
||||
if (!equals6(-0.0F, 0.0F)) return "fail 6"
|
||||
|
||||
// Smart casts behavior in 1.2
|
||||
if (equals5(-0.0F, 0.0F)) return "fail 5"
|
||||
if (equals6(-0.0F, 0.0F)) return "fail 6"
|
||||
|
||||
if (!equals7(-0.0F, 0.0F)) return "fail 7"
|
||||
|
||||
if (!equals8(-0.0F, 0.0F)) return "fail 8"
|
||||
// Smart casts behavior in 1.2
|
||||
if (equals8(-0.0F, 0.0F)) return "fail 8"
|
||||
|
||||
if (!equals8(null, null)) return "fail 9"
|
||||
if (equals8(null, 0.0F)) return "fail 10"
|
||||
if (equals8(0.0F, null)) return "fail 11"
|
||||
|
||||
Reference in New Issue
Block a user