Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/44229bb3bbe4ca3fa8223167f98c62315049efee

>---------------------------------------------------------------

commit 44229bb3bbe4ca3fa8223167f98c62315049efee
Author: Andrew Farmer <afar...@ittc.ku.edu>
Date:   Thu Oct 4 16:53:55 2012 -0500

    Test for #7162: RULES that never fire automatically

>---------------------------------------------------------------

 tests/simplCore/should_compile/T7162.hs            |    9 +++++++++
 .../should_compile/T7162.stderr}                   |    0 
 tests/simplCore/should_compile/all.T               |    1 +
 3 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/tests/simplCore/should_compile/T7162.hs 
b/tests/simplCore/should_compile/T7162.hs
new file mode 100644
index 0000000..e09b921
--- /dev/null
+++ b/tests/simplCore/should_compile/T7162.hs
@@ -0,0 +1,9 @@
+import Data.Char
+
+{-# RULES "map-loop" [~] forall f . map' f = map' (id . f) #-}
+
+{-# NOINLINE map' #-}
+map' f [] = []
+map' f (x:xs) = f x : map' f xs
+
+main = print (map' toUpper "Hello, World")
diff --git a/tests/annotations/should_compile/ann01.stderr 
b/tests/simplCore/should_compile/T7162.stderr
similarity index 100%
copy from tests/annotations/should_compile/ann01.stderr
copy to tests/simplCore/should_compile/T7162.stderr
diff --git a/tests/simplCore/should_compile/all.T 
b/tests/simplCore/should_compile/all.T
index e9b9aa3..7c7138d 100644
--- a/tests/simplCore/should_compile/all.T
+++ b/tests/simplCore/should_compile/all.T
@@ -35,6 +35,7 @@ test('spec003', normal, compile, [''])
 
 test('rule1', normal, compile, [''])
 test('rule2', only_ways(['optasm']), compile, ['-dsuppress-uniques'])
+test('T7162', normal, compile, [''])
 
 test('dfun-loop', normal, compile, [''])
 test('strict-float', normal, compile, [''])



_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to