diff options
Diffstat (limited to 'testsuite/tests/codeGen/should_run/1861.hs')
-rw-r--r-- | testsuite/tests/codeGen/should_run/1861.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/codeGen/should_run/1861.hs b/testsuite/tests/codeGen/should_run/1861.hs new file mode 100644 index 0000000000..b6136f4ea2 --- /dev/null +++ b/testsuite/tests/codeGen/should_run/1861.hs @@ -0,0 +1,9 @@ +import System.Environment +main = do [x] <- getArgs + print (read x < (1e400 :: Double)) + print (read x < (-1e400 :: Double)) + print (read x == (0/0 :: Double)) + -- the last doesn't get constant-folded to NaN, so we're not really + -- testing properly here. Still, we might manage to constant fold + -- this in the future, so I'll leave it in place. + |