[commit: ghc] master: Test Trac #5821 (c823b73)

git at git.haskell.org git at git.haskell.org
Wed Jan 14 17:11:19 UTC 2015


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

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

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

commit c823b73cb2ca8e2392e2a4c48286879cc7baa51c
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Jan 14 17:12:29 2015 +0000

    Test Trac #5821
    
    And rename the wrongly named rebindable/T5821 to T5908 (Trac #5908)


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

c823b73cb2ca8e2392e2a4c48286879cc7baa51c
 testsuite/tests/rebindable/{T5821.hs => T5908.hs} |  2 +-
 testsuite/tests/rebindable/all.T                  |  2 +-
 testsuite/tests/simplCore/should_compile/T5821.hs | 11 +++++++++++
 testsuite/tests/simplCore/should_compile/all.T    |  1 +
 4 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/testsuite/tests/rebindable/T5821.hs b/testsuite/tests/rebindable/T5908.hs
similarity index 99%
rename from testsuite/tests/rebindable/T5821.hs
rename to testsuite/tests/rebindable/T5908.hs
index 6adc356..32a4d4e 100644
--- a/testsuite/tests/rebindable/T5821.hs
+++ b/testsuite/tests/rebindable/T5908.hs
@@ -4,7 +4,7 @@
     ExplicitForAll
   , GADTs
   , RebindableSyntax #-}
-module T5821a 
+module T5908
        ( Writer
        , runWriter
        , execWriter
diff --git a/testsuite/tests/rebindable/all.T b/testsuite/tests/rebindable/all.T
index a2a37d7..70628fa 100644
--- a/testsuite/tests/rebindable/all.T
+++ b/testsuite/tests/rebindable/all.T
@@ -30,4 +30,4 @@ test('DoParamM', reqlib('mtl'), compile_fail, [''])
 test('T5038', normal, compile_and_run, [''])
 test('T4851', normal, compile, [''])
 
-test('T5821', normal, compile, [''])
+test('T5908', normal, compile, [''])
diff --git a/testsuite/tests/simplCore/should_compile/T5821.hs b/testsuite/tests/simplCore/should_compile/T5821.hs
new file mode 100644
index 0000000..762254c
--- /dev/null
+++ b/testsuite/tests/simplCore/should_compile/T5821.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TypeFamilies #-}
+{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
+module T5821 where
+
+type family T a
+type instance T Int = Bool
+
+foo :: Num a => a -> T a
+foo = undefined
+
+{-# SPECIALISE foo :: Int -> Bool #-}
diff --git a/testsuite/tests/simplCore/should_compile/all.T b/testsuite/tests/simplCore/should_compile/all.T
index 2ce58ec..0ffe974 100644
--- a/testsuite/tests/simplCore/should_compile/all.T
+++ b/testsuite/tests/simplCore/should_compile/all.T
@@ -209,3 +209,4 @@ test('T6056', only_ways(['optasm']), multimod_compile, ['T6056', '-v0 -ddump-rul
 test('T9400', only_ways(['optasm']), compile, ['-O0 -ddump-simpl -dsuppress-uniques'])
 test('T9583', only_ways(['optasm']), compile, [''])
 test('T9565', only_ways(['optasm']), compile, [''])
+test('T5821', only_ways(['optasm']), compile, [''])



More information about the ghc-commits mailing list