[IR] update testdata: don't use "D" suffix on double constants
This commit is contained in:
committed by
teamcityserver
parent
73771a3513
commit
57cb8f97e9
Vendored
+4
-3
@@ -2,7 +2,7 @@ fun testSimple(x: Double): Int {
|
||||
return { // BLOCK
|
||||
val tmp0_subject: Double = x
|
||||
when {
|
||||
ieee754equals(arg0 = tmp0_subject, arg1 = 0.0D) -> 0
|
||||
ieee754equals(arg0 = tmp0_subject, arg1 = 0.0) -> 0
|
||||
else -> 1
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ fun testSmartCastInWhenSubject(x: Any): Int {
|
||||
return { // BLOCK
|
||||
val tmp1_subject: Double = x /*as Double */
|
||||
when {
|
||||
ieee754equals(arg0 = tmp1_subject, arg1 = 0.0D) -> 0
|
||||
ieee754equals(arg0 = tmp1_subject, arg1 = 0.0) -> 0
|
||||
else -> 1
|
||||
}
|
||||
}
|
||||
@@ -39,7 +39,7 @@ fun testSmartCastInWhenConditionInBranch(x: Any): Int {
|
||||
val tmp3_subject: Any = x
|
||||
when {
|
||||
tmp3_subject !is Double -> -1
|
||||
EQEQ(arg0 = tmp3_subject, arg1 = 0.0D) -> 0
|
||||
EQEQ(arg0 = tmp3_subject, arg1 = 0.0) -> 0
|
||||
else -> 1
|
||||
}
|
||||
}
|
||||
@@ -77,3 +77,4 @@ fun testWithPrematureExitInConditionSubexpression(x: Any): Int {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Vendored
+3
-3
@@ -2,7 +2,7 @@ fun testSimple(x: Double): Int {
|
||||
return { // BLOCK
|
||||
val tmp0_subject: Double = x
|
||||
when {
|
||||
ieee754equals(arg0 = tmp0_subject, arg1 = 0.0D) -> 0
|
||||
ieee754equals(arg0 = tmp0_subject, arg1 = 0.0) -> 0
|
||||
else -> 1
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ fun testSmartCastInWhenSubject(x: Any): Int {
|
||||
return { // BLOCK
|
||||
val tmp0_subject: Any = x
|
||||
when {
|
||||
ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0D) -> 0
|
||||
ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0) -> 0
|
||||
else -> 1
|
||||
}
|
||||
}
|
||||
@@ -39,7 +39,7 @@ fun testSmartCastInWhenConditionInBranch(x: Any): Int {
|
||||
val tmp0_subject: Any = x
|
||||
when {
|
||||
tmp0_subject is Double.not() -> -1
|
||||
ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0D) -> 0
|
||||
ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0) -> 0
|
||||
else -> 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,11 +31,11 @@ val test8: Long
|
||||
get
|
||||
|
||||
val test9: Double
|
||||
field = 1.0D
|
||||
field = 1.0
|
||||
get
|
||||
|
||||
val test10: Double
|
||||
field = 1.0D.unaryMinus()
|
||||
field = 1.0.unaryMinus()
|
||||
get
|
||||
|
||||
val test11: Float
|
||||
@@ -65,3 +65,4 @@ val testI: Int
|
||||
val testL: Long
|
||||
field = 1L
|
||||
get
|
||||
|
||||
|
||||
+2
-2
@@ -31,11 +31,11 @@ val test8: Long
|
||||
get
|
||||
|
||||
val test9: Double
|
||||
field = 1.0D
|
||||
field = 1.0
|
||||
get
|
||||
|
||||
val test10: Double
|
||||
field = -1.0D
|
||||
field = -1.0
|
||||
get
|
||||
|
||||
val test11: Float
|
||||
|
||||
Reference in New Issue
Block a user