const-math-ghc-plugin-0.3.0.1: tests/ghc-7.6/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)