summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Main.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Main.hs b/test/Main.hs
new file mode 100644
index 0000000..c813e48
--- /dev/null
+++ b/test/Main.hs
@@ -0,0 +1,14 @@
+module Main where
+
+import Control.Monad (forM_)
+
+import GHC.GC_Hook
+
+
+main :: IO ()
+main = do
+ setGCHook
+ forM_ [1..10] $ \i -> do
+ let l = [i..10000]
+ print (sum l + product l + length l)
+ getGCLog >>= print