projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1997-09-05 14:11:05 by simonm]
[ghc-hetmet.git]
/
ghc
/
tests
/
codeGen
/
should_run
/
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