diff options
Diffstat (limited to 'testsuite/tests/concurrent/should_run/conc026.hs')
-rw-r--r-- | testsuite/tests/concurrent/should_run/conc026.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/conc026.hs b/testsuite/tests/concurrent/should_run/conc026.hs new file mode 100644 index 0000000000..0aa170afb5 --- /dev/null +++ b/testsuite/tests/concurrent/should_run/conc026.hs @@ -0,0 +1,8 @@ +-- test for blocking putMVar + +import Control.Concurrent + +main = do + m <- newMVar () + forkIO (threadDelay 100000 >> takeMVar m) + putMVar m () |