diff options
Diffstat (limited to 'testsuite/tests/numeric/should_run/arith019.hs')
-rw-r--r-- | testsuite/tests/numeric/should_run/arith019.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/numeric/should_run/arith019.hs b/testsuite/tests/numeric/should_run/arith019.hs new file mode 100644 index 0000000000..861e9bc883 --- /dev/null +++ b/testsuite/tests/numeric/should_run/arith019.hs @@ -0,0 +1,10 @@ +-- demonstrates a bug in mulIntMayOflo in GHC 6.5 on 64-bit arches +-- (trac #867). +-- It thought it could represent 3049800625 * 3049800625 in an I#. + +i :: Integer +i = 3049800625 + +main :: IO () +main = print (i * i) + |