3fa877cdb88896757e776dbf5effcdb2d6c66e89
[ghc-hetmet.git] / ghc / tests / codeGen / cg028.hs
1 main = putStr (shows (f (read "42.0")) "\n")
2
3 -- f compiled to bogus code with ghc 0.18 and earlier
4 -- switch() on a DoubleReg
5
6 f :: Double -> Int
7 f 1.0 = 1
8 f 2.0 = 2
9 f 3.0 = 3
10 f x = round x