summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_run/T9533.hs
blob: aaf57a4e4370c986510c0e97a04b7522f8826c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import Data.Word

x :: Word
x = 10

y :: Word
y = 11

test = case x - y of
         5 -> "C"
         -1 -> "A"
         _  -> "B"
main = putStrLn $ show test