Skip to content
Snippets Groups Projects
Commit 78c3f330 authored by KevinBuhr's avatar KevinBuhr Committed by Marge Bot
Browse files

Add regression test for old Word32 arithmetic issue (#497)

parent ddae344e
No related branches found
Tags ghc-9.8.1-alpha3
No related merge requests found
import Data.Word
-- #497: using -O should not make these == 1
main = do
print $ q * 2 + 1
print $ q' * 2 + 1
q :: Word32
q = 0x7FFFFFFF
q' :: Word64
q' = 0x7FFFFFFFFFFFFFFF
4294967295
18446744073709551615
......@@ -67,3 +67,4 @@ test('T10962', omit_ways(['ghci']), compile_and_run, ['-O2'])
test('T11702', extra_ways(['optasm']), compile_and_run, [''])
test('T12136', normal, compile_and_run, [''])
test('T15301', normal, compile_and_run, ['-O2'])
test('T497', normal, compile_and_run, ['-O'])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment