diff options
Diffstat (limited to 'testsuite/tests/numeric/should_run/numrun009.hs')
-rw-r--r-- | testsuite/tests/numeric/should_run/numrun009.hs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/testsuite/tests/numeric/should_run/numrun009.hs b/testsuite/tests/numeric/should_run/numrun009.hs index 37d0513a39..622458143f 100644 --- a/testsuite/tests/numeric/should_run/numrun009.hs +++ b/testsuite/tests/numeric/should_run/numrun009.hs @@ -3,15 +3,15 @@ -- (not necessarily Haskell 98: relies on Int being a 32-bit type.) main = do - print (-2147483648 :: Int) -- -2147483648 - print ((-2147483647)-1 :: Int) -- -2147483648 - print (-2147483648 :: Integer) -- -2147483648 - print ((-2147483648 :: Int) >= 0) -- False - print ((-2147483648 :: Integer) >= 0) -- False - print (-(-2147483648) :: Int) -- <undefined> - print (abs (-2147483648) :: Int) -- <undefined> - print (abs ((-2147483647)-1) :: Int) -- <undefined> - print (abs (-2147483648) :: Integer) -- 2147483648 - print (abs ((-2147483647)-1) :: Integer) -- 2147483648 (wrong in 4.04) - print (fromInteger (-2147483648 :: Integer) :: Int) -- -2147483648 + print (-2147483648 :: Int) -- -2147483648 + print ((-2147483647)-1 :: Int) -- -2147483648 + print (-2147483648 :: Integer) -- -2147483648 + print ((-2147483648 :: Int) >= 0) -- False + print ((-2147483648 :: Integer) >= 0) -- False + print (-(-2147483648) :: Int) -- <undefined> + print (abs (-2147483648) :: Int) -- <undefined> + print (abs ((-2147483647)-1) :: Int) -- <undefined> + print (abs (-2147483648) :: Integer) -- 2147483648 + print (abs ((-2147483647)-1) :: Integer) -- 2147483648 (wrong in 4.04) + print (fromInteger (-2147483648 :: Integer) :: Int) -- -2147483648 print (fromInteger ((-2147483647)-1 :: Integer) :: Int) -- -2147483648 |