diff options
Diffstat (limited to 'testsuite/tests/concurrent/should_run/conc029.hs')
-rw-r--r-- | testsuite/tests/concurrent/should_run/conc029.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/conc029.hs b/testsuite/tests/concurrent/should_run/conc029.hs new file mode 100644 index 0000000000..dc1150073d --- /dev/null +++ b/testsuite/tests/concurrent/should_run/conc029.hs @@ -0,0 +1,11 @@ +module Main where + +import Control.Exception +import Control.Concurrent +import Prelude hiding (catch) + +-- the BlockOnDeadMVar exception doesn't cause any output by default + +main = do + forkIO (do m <- newEmptyMVar; takeMVar m) + print (sum [1..10000]) |