diff options
Diffstat (limited to 'testsuite/tests/profiling/should_run/dynamic-prof2.hs')
-rw-r--r-- | testsuite/tests/profiling/should_run/dynamic-prof2.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/profiling/should_run/dynamic-prof2.hs b/testsuite/tests/profiling/should_run/dynamic-prof2.hs new file mode 100644 index 0000000000..243e094877 --- /dev/null +++ b/testsuite/tests/profiling/should_run/dynamic-prof2.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) + + |