summaryrefslogtreecommitdiff
path: root/testsuite/tests/perf/should_run/T5205.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/perf/should_run/T5205.hs')
-rw-r--r--testsuite/tests/perf/should_run/T5205.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/perf/should_run/T5205.hs b/testsuite/tests/perf/should_run/T5205.hs
new file mode 100644
index 0000000000..215dd42647
--- /dev/null
+++ b/testsuite/tests/perf/should_run/T5205.hs
@@ -0,0 +1,13 @@
+
+import Control.Concurrent
+import Control.Monad
+
+main :: IO ()
+main = do t <- forkIO (x >> x)
+ threadDelay 1000000
+ killThread t
+ putStrLn "Done"
+
+x :: IO ()
+x = forever yield
+