* Fixes #7079 * Fix handling of neg zero during constant folding
This commit is contained in:
parent
b5538990a2
commit
94038545be
4 changed files with 31 additions and 11 deletions
9
tests/ccgbugs/t7079.nim
Normal file
9
tests/ccgbugs/t7079.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
discard """
|
||||
action: run
|
||||
targets: '''c js'''
|
||||
"""
|
||||
|
||||
import math
|
||||
let x = -0.0
|
||||
doAssert classify(x) == fcNegZero
|
||||
doAssert classify(1 / -0.0) == fcNegInf
|
||||
Loading…
Add table
Add a link
Reference in a new issue