summaryrefslogtreecommitdiff
path: root/testsuite/tests/concurrent/should_run/numsparks001.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/concurrent/should_run/numsparks001.hs')
-rw-r--r--testsuite/tests/concurrent/should_run/numsparks001.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/numsparks001.hs b/testsuite/tests/concurrent/should_run/numsparks001.hs
new file mode 100644
index 0000000000..f28bf87d55
--- /dev/null
+++ b/testsuite/tests/concurrent/should_run/numsparks001.hs
@@ -0,0 +1,11 @@
+
+import GHC.Conc
+
+main = do
+ let x = length [1..100]
+ numSparks >>= print
+ x `par` numSparks >>= print
+ x `par` numSparks >>= print
+ x `par` numSparks >>= print
+ x `par` numSparks >>= print
+