summaryrefslogtreecommitdiff
path: root/testsuite/tests/concurrent/should_run/4030.hs
blob: 1993bad86bc63417ad733e12ff33ed31e1d9bf1d (plain)
1
2
3
4
5
6
7
8
module Main where

import Control.Concurrent ( forkIO, killThread )
import Control.Exception  ( block )

main :: IO ()
main = do tid <- block $ forkIO $ let x = x in x
          killThread tid