[project @ 2001-02-14 14:14:55 by simonmar]
authorsimonmar <unknown>
Wed, 14 Feb 2001 14:14:55 +0000 (14:14 +0000)
committersimonmar <unknown>
Wed, 14 Feb 2001 14:14:55 +0000 (14:14 +0000)
simple tryPutMVar test.

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

diff --git a/ghc/tests/concurrent/should_run/conc028.hs b/ghc/tests/concurrent/should_run/conc028.hs
new file mode 100644 (file)
index 0000000..ee39aad
--- /dev/null
@@ -0,0 +1,8 @@
+-- test tryPutMVar
+
+import Concurrent
+
+main = do
+  m <- newMVar ()
+  r <- tryPutMVar m ()
+  print r