Permalink
Browse files

SpecConstr infinite specialisation: test for #5550

  • Loading branch information...
1 parent 8697d9a commit 7fb4ac41a673b68fb9ff4383f116d6318aa217fe @amosr amosr committed Apr 3, 2013
@@ -0,0 +1,11 @@
+module T5550 where
+
+import GHC.Exts ( SpecConstrAnnotation(..) )
+
+data SPEC = SPEC | SPEC2
+{-# ANN type SPEC ForceSpecConstr #-}
+
+loop :: SPEC -> [Int] -> [Int] -> [Int]
+loop SPEC z [] = z
+loop SPEC z (x:xs) = loop SPEC (x:z) xs
+
@@ -0,0 +1,3 @@
+Loading package ghc-prim ... linking ... done.
+Loading package integer-gmp ... linking ... done.
+Loading package base ... linking ... done.
@@ -164,3 +164,4 @@ test('T7796',
extra_clean(['T7796.prep']),
run_command,
['$MAKE -s --no-print-directory T7796'])
+test('T5550', normal, compile, [''])

0 comments on commit 7fb4ac4

Please sign in to comment.