diff options
Diffstat (limited to 'testsuite/tests/concurrent/should_run/2910a.hs')
-rw-r--r-- | testsuite/tests/concurrent/should_run/2910a.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/2910a.hs b/testsuite/tests/concurrent/should_run/2910a.hs new file mode 100644 index 0000000000..380c15467d --- /dev/null +++ b/testsuite/tests/concurrent/should_run/2910a.hs @@ -0,0 +1,9 @@ +import Control.Exception +import GHC.Conc + +main = do + t1 <- mask_ $ forkIO yield + t2 <- forkIO $ killThread t1 + threadDelay 100000 + threadStatus t1 >>= print + threadStatus t2 >>= print |