diff options
Diffstat (limited to 'testsuite/tests/concurrent/should_run/4813.hs')
-rw-r--r-- | testsuite/tests/concurrent/should_run/4813.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/4813.hs b/testsuite/tests/concurrent/should_run/4813.hs new file mode 100644 index 0000000000..db3a9778c6 --- /dev/null +++ b/testsuite/tests/concurrent/should_run/4813.hs @@ -0,0 +1,12 @@ +import Control.Concurrent +import Control.Monad +import Control.Exception +import System.Mem + +-- caused an assertion failure with -debug in 7.0.1 (#4813) + +main = do + m <- newEmptyMVar + ts <- replicateM 100 $ mask_ $ forkIO $ threadDelay 100000; putMVar m () + mapM_ killThread (reverse (init ts)) + takeMVar m |