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
@@ -0,0 +1,28 @@
// !LANGUAGE: +ProperIeee754Comparisons
fun box(): String {
val plusZero: Any = 0.0
val minusZero: Any = -0.0
if (plusZero is Double && minusZero is Double) {
when {
plusZero < minusZero -> {
return "fail 1"
}
plusZero > minusZero -> {
return "fail 2"
}
else -> {}
}
when {
plusZero == minusZero -> {}
else -> {
return "fail 3"
}
}
}
return "OK"
}