summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_run/T20640b.hs
blob: 367508b90d1e3bb19eda8f68e244541098330e88 (plain)
1
2
3
4
5
6
7
8
import Data.Word

foo :: Word8 -> Char
foo c | c <= 0xdf = 'A' -- 0xdf=223
      | otherwise = 'B'
{-# NOINLINE foo #-}

main = print (foo 0xce) -- 0xce=206