[commit: ghc] wip/rae: Test #9404 (typecheck/should_compile/T9404) (80368d4)

git at git.haskell.org git at git.haskell.org
Thu Aug 7 18:07:50 UTC 2014


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

On branch  : wip/rae
Link       : http://ghc.haskell.org/trac/ghc/changeset/80368d4a14aff66b3e6bae6053adf9e30218bde5/ghc

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

commit 80368d4a14aff66b3e6bae6053adf9e30218bde5
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Thu Aug 7 09:20:41 2014 -0400

    Test #9404 (typecheck/should_compile/T9404)


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

80368d4a14aff66b3e6bae6053adf9e30218bde5
 testsuite/tests/typecheck/should_compile/T9404.hs | 6 ++++++
 testsuite/tests/typecheck/should_compile/all.T    | 1 +
 2 files changed, 7 insertions(+)

diff --git a/testsuite/tests/typecheck/should_compile/T9404.hs b/testsuite/tests/typecheck/should_compile/T9404.hs
new file mode 100644
index 0000000..4cb530a
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T9404.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE UnboxedTuples #-}
+
+module T9404 where
+
+foo _ = case seq () (# #) of (# #) -> ()
+foo2 _ = case () `seq` (# #) of (# #) -> ()
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index 07d05b8..2ca9c2f 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -420,3 +420,4 @@ test('MutRec', normal, compile, [''])
 test('T8856', normal, compile, [''])
 test('T9117', normal, compile, [''])
 test('T9117_2', expect_broken('9117'), compile, [''])
+test('T9404', normal, compile, [''])



More information about the ghc-commits mailing list