[commit: ghc] master: Test Trac #12925 (3e3f7c2)

git at git.haskell.org git at git.haskell.org
Mon Dec 5 17:40:36 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/3e3f7c21a64758c671192c63a741ecc4a5a08831/ghc

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

commit 3e3f7c21a64758c671192c63a741ecc4a5a08831
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Dec 5 17:18:19 2016 +0000

    Test Trac #12925


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

3e3f7c21a64758c671192c63a741ecc4a5a08831
 testsuite/tests/typecheck/should_compile/T12925.hs | 12 ++++++++++++
 testsuite/tests/typecheck/should_compile/all.T     |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/testsuite/tests/typecheck/should_compile/T12925.hs b/testsuite/tests/typecheck/should_compile/T12925.hs
new file mode 100644
index 0000000..986aa51
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T12925.hs
@@ -0,0 +1,12 @@
+module Bug where
+
+data Foo a x = Foo x
+
+refoo :: Foo a x -> Foo b x
+{-# NOINLINE refoo #-}
+refoo (Foo x) = Foo x
+
+{-# RULES
+
+"refoo/refoo" forall s.
+  refoo (refoo s) = s  #-}
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index de7f147..e2d65bd 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -555,4 +555,4 @@ test('T12734', normal, compile, [''])
 test('T12734a', normal, compile_fail, [''])
 test('T12763', normal, compile, [''])
 test('T12797', normal, compile, [''])
-
+test('T12925', normal, compile, [''])



More information about the ghc-commits mailing list