diff options
Diffstat (limited to 'testsuite/tests/concurrent/should_run/conc013.hs')
-rw-r--r-- | testsuite/tests/concurrent/should_run/conc013.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/conc013.hs b/testsuite/tests/concurrent/should_run/conc013.hs new file mode 100644 index 0000000000..ea2130ee47 --- /dev/null +++ b/testsuite/tests/concurrent/should_run/conc013.hs @@ -0,0 +1,10 @@ +module Main where + +-- !!! test Eq and Ord instances over thread Ids. + +import Control.Concurrent + +main = do + tso1 <- forkIO (return ()) + tso2 <- forkIO (return ()) + print [compare tso1 tso2, compare tso1 tso1, compare tso2 tso1] |