diff options
Diffstat (limited to 'testsuite/tests/concurrent/should_run/conc042.hs')
-rw-r--r-- | testsuite/tests/concurrent/should_run/conc042.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/conc042.hs b/testsuite/tests/concurrent/should_run/conc042.hs new file mode 100644 index 0000000000..9ebbf3e4ea --- /dev/null +++ b/testsuite/tests/concurrent/should_run/conc042.hs @@ -0,0 +1,11 @@ +module Main where + +import GHC.Conc + +-- Create a new TVar and check that it contains the expected value +main = do + putStr "Before\n" + t <- atomically ( newTVar 42 ) + r <- atomically ( readTVar t ) + putStr ("After " ++ (show r) ++ "\n") + |