[commit: ghc] ghc-7.10: testsuite: Add test for #10489 (2237c98)

git at git.haskell.org git at git.haskell.org
Tue Jun 9 02:48:49 UTC 2015


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

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/2237c9818c1cc719560821c3153ac2059094fdd5/ghc

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

commit 2237c9818c1cc719560821c3153ac2059094fdd5
Author: Austin Seipp <austin at well-typed.com>
Date:   Mon Jun 8 21:47:48 2015 -0500

    testsuite: Add test for #10489
    
    This is half of 61b96a86c5342fb1c850361177d60fe855d948f6 essentially -
    just to make sure the 7.10 branch doesn't regress on #10489.
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


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

2237c9818c1cc719560821c3153ac2059094fdd5
 testsuite/tests/typecheck/should_compile/T10489.hs | 3 +++
 testsuite/tests/typecheck/should_compile/all.T     | 1 +
 2 files changed, 4 insertions(+)

diff --git a/testsuite/tests/typecheck/should_compile/T10489.hs b/testsuite/tests/typecheck/should_compile/T10489.hs
new file mode 100644
index 0000000..892965e
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T10489.hs
@@ -0,0 +1,3 @@
+module T10489 where
+
+convert d = let d' = case d of '0' -> '!' in d'
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index af58fcd..7bb37b4 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -444,3 +444,4 @@ test('T10177', normal, compile, [''])
 test('T10195', normal, compile, [''])
 test('T10109', normal, compile, [''])
 test('T10335', normal, compile, [''])
+test('T10489', normal, compile, [''])



More information about the ghc-commits mailing list