summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib/should_run/stableptr003.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/lib/should_run/stableptr003.hs')
-rw-r--r--testsuite/tests/lib/should_run/stableptr003.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/lib/should_run/stableptr003.hs b/testsuite/tests/lib/should_run/stableptr003.hs
new file mode 100644
index 0000000000..77f4e3c9dc
--- /dev/null
+++ b/testsuite/tests/lib/should_run/stableptr003.hs
@@ -0,0 +1,16 @@
+module Main where
+
+import Control.Monad
+import System.Mem.StableName
+import Control.Exception
+
+main = do
+ mapM_ evaluate list
+ stable_list1 <- mapM makeStableName list
+ stable_list2 <- mapM makeStableName list
+ unless (stable_list1 == stable_list2) $ do
+ let l1 = map hashStableName stable_list1
+ let l2 = map hashStableName stable_list2
+ print $ zip l1 l2
+
+list = [1..10000] :: [Integer]