[project @ 2003-03-17 14:47:47 by simonmar]
authorsimonmar <unknown>
Mon, 17 Mar 2003 14:47:48 +0000 (14:47 +0000)
committersimonmar <unknown>
Mon, 17 Mar 2003 14:47:48 +0000 (14:47 +0000)
commit74b46a5d5f59fbeba0e35bd5a6ba685e9efd2b8e
tree15089022697ff3de6d686eddc85cfd94518ffa83
parent1b5c8ce0a3565ec02a38325f82473f1e772d7afe
[project @ 2003-03-17 14:47:47 by simonmar]
Haskell quiz:  what should this program do?

  main = return undefined

answer: run to completion and exit successfully.  GHC erroneously
evaluates the returned value from main, which causes this example to
fail with an uncaught exception (the evaluation is even done outside
of the main exception handler!).
ghc/rts/Main.c
ghc/rts/Schedule.h
ghc/rts/Weak.c