summaryrefslogtreecommitdiff
path: root/testsuite/tests/concurrent/should_run/5866.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/concurrent/should_run/5866.hs')
-rw-r--r--testsuite/tests/concurrent/should_run/5866.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/5866.hs b/testsuite/tests/concurrent/should_run/5866.hs
new file mode 100644
index 0000000000..4650ea66e9
--- /dev/null
+++ b/testsuite/tests/concurrent/should_run/5866.hs
@@ -0,0 +1,10 @@
+import GHC.Conc
+import Control.Exception
+import System.IO.Unsafe
+import System.Timeout
+
+main :: IO ()
+main = do
+ x <- unsafeInterleaveIO $ atomically retry
+ _ <- timeout 500000 $ evaluate x
+ evaluate x