[project @ 1999-08-25 10:30:36 by simonmar]
authorsimonmar <unknown>
Wed, 25 Aug 1999 10:30:36 +0000 (10:30 +0000)
committersimonmar <unknown>
Wed, 25 Aug 1999 10:30:36 +0000 (10:30 +0000)
Little test for Eq and Ord instances of ThreadId.

ghc/tests/concurrent/should_run/conc013.hs [new file with mode: 0644]
ghc/tests/concurrent/should_run/conc013.stdout [new file with mode: 0644]

diff --git a/ghc/tests/concurrent/should_run/conc013.hs b/ghc/tests/concurrent/should_run/conc013.hs
new file mode 100644 (file)
index 0000000..78c07a9
--- /dev/null
@@ -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 (file)
index 0000000..98ab9c1
--- /dev/null
@@ -0,0 +1 @@
+[LT,EQ,GT]