summaryrefslogtreecommitdiff
path: root/libraries/base/tests/topHandler02.hs
blob: 270239c77f8c99004e552cc25805affbc72490f4 (plain)
1
2
3
4
5
6
7
import Control.Exception
import Control.Concurrent

-- Test that a UserInterrupt exception that propagates to the top level
-- causes the process to terminate by killing itself with SIGINT

main = throwIO UserInterrupt