summaryrefslogtreecommitdiff
path: root/testsuite/tests/concurrent/should_run/conc028.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/concurrent/should_run/conc028.hs')
-rw-r--r--testsuite/tests/concurrent/should_run/conc028.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/conc028.hs b/testsuite/tests/concurrent/should_run/conc028.hs
new file mode 100644
index 0000000000..4d3d16866a
--- /dev/null
+++ b/testsuite/tests/concurrent/should_run/conc028.hs
@@ -0,0 +1,11 @@
+-- test tryPutMVar
+
+import Control.Concurrent
+
+main = do
+ m <- newMVar ()
+ r <- tryPutMVar m ()
+ print r
+ takeMVar m
+ r <- tryPutMVar m ()
+ print r