From: simonmar Date: Wed, 25 Aug 1999 10:30:36 +0000 (+0000) Subject: [project @ 1999-08-25 10:30:36 by simonmar] X-Git-Tag: Approximately_9120_patches~5873 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=983f86ef4185b3cfe0f4fe336a5d8351a72a77dc;p=ghc-hetmet.git [project @ 1999-08-25 10:30:36 by simonmar] Little test for Eq and Ord instances of ThreadId. --- diff --git a/ghc/tests/concurrent/should_run/conc013.hs b/ghc/tests/concurrent/should_run/conc013.hs new file mode 100644 index 0000000..78c07a9 --- /dev/null +++ b/ghc/tests/concurrent/should_run/conc013.hs @@ -0,0 +1,10 @@ +module Main where + +-- !!! test Eq and Ord instances over thread Ids. + +import Concurrent + +main = do + tso1 <- forkIO (return ()) + tso2 <- forkIO (return ()) + print [compare tso1 tso2, compare tso1 tso1, compare tso2 tso1] diff --git a/ghc/tests/concurrent/should_run/conc013.stdout b/ghc/tests/concurrent/should_run/conc013.stdout new file mode 100644 index 0000000..98ab9c1 --- /dev/null +++ b/ghc/tests/concurrent/should_run/conc013.stdout @@ -0,0 +1 @@ +[LT,EQ,GT]