const-math-ghc-plugin-0.2.0.0: tests/arith017.hs
-- !!! test for a bug in integer->{Int,Word}64 conversion in GHC 5.04.x
import Data.Int
import Data.Word
main = do
print (fromIntegral ((2^30 -1 + 2^30) - (2^30 + 2^30 :: Integer))
:: Data.Int.Int64)
print (fromIntegral ((2^30 -1 + 2^30) - (2^30 + 2^30 :: Integer))
:: Data.Word.Word64)