Skip to content

Commit

Permalink
fbc-tests: add tests for float comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
jayrm committed Jun 22, 2023
1 parent 9362d61 commit 9e2ffed
Show file tree
Hide file tree
Showing 2 changed files with 395 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/compiler/ast-misc.bas
Expand Up @@ -833,9 +833,11 @@ function astBuildBranch _
'' Note: a CONST expression will never use temp vars.
'' Although the AST may have dtors registered from other parts
'' of the expression if it's an iif(), iif() will (currently)
'' optimize out itself when the condition is CONST, so this
'' case never happens.
assert( is_iif = FALSE )
'' optimize out itself when the condition is CONST. However,
'' iif() won't apply optimizations from astOptimize(), so this
'' could still be an iif() after the astOptimize() earlier in
'' this procedure

assert( call_dtors = FALSE )

'' If the condition is...
Expand Down

0 comments on commit 9e2ffed

Please sign in to comment.