summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/concurrent/should_run/conc033.hs
blob: 6933822e56491fe9b277ab2c6c6aa625c72504ec (plain)
1
2
3
4
5
6
7
8
9
10
import Control.Concurrent
import Control.Exception

-- !!! test that deadlock is raised as an exception properly
main = do
  r <- Control.Exception.try $ do
          m <- newEmptyMVar
          takeMVar m
	  return ()
  print (r::Either SomeException ())