summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_run/T9533c.hs
blob: 85af8bd5e5a80ec0baa105413117db0b60257cdb (plain)
1
2
3
4
5
6
7
8
-- Don't wrap literals that will be used at type Integer
f :: Integer -> Int
f n = case n of
  0x100000000000000000000000 -> 1
  0 -> 2
  _ -> 3

main = print (f (read "0"))