summaryrefslogtreecommitdiff
path: root/testsuite/tests/profiling/should_run/dynamic-prof.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/profiling/should_run/dynamic-prof.hs')
-rw-r--r--testsuite/tests/profiling/should_run/dynamic-prof.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/profiling/should_run/dynamic-prof.hs b/testsuite/tests/profiling/should_run/dynamic-prof.hs
new file mode 100644
index 0000000000..243e094877
--- /dev/null
+++ b/testsuite/tests/profiling/should_run/dynamic-prof.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE BangPatterns #-}
+module Main where
+
+import GHC.Profiling
+import Control.Exception
+
+main = do
+ let !t = [0..1000000]
+ evaluate (length t)
+ requestHeapCensus
+ evaluate (length t)
+
+