summaryrefslogtreecommitdiff
path: root/testsuite/tests/concurrent/should_run/conc033.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/concurrent/should_run/conc033.hs')
-rw-r--r--testsuite/tests/concurrent/should_run/conc033.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/conc033.hs b/testsuite/tests/concurrent/should_run/conc033.hs
new file mode 100644
index 0000000000..6933822e56
--- /dev/null
+++ b/testsuite/tests/concurrent/should_run/conc033.hs
@@ -0,0 +1,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 ())