[commit: testsuite] master: Test Trac #7669 (b6b2125)

Simon Peyton Jones simonpj at microsoft.com
Wed Feb 13 18:46:12 CET 2013


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

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/b6b212538ab4ecd65f3aeaad0d2606639df67e82

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

commit b6b212538ab4ecd65f3aeaad0d2606639df67e82
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Feb 13 17:41:23 2013 +0000

    Test Trac #7669

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

 tests/deSugar/should_compile/T7669.hs |   11 +++++++++++
 tests/deSugar/should_compile/all.T    |    1 +
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/tests/deSugar/should_compile/T7669.hs b/tests/deSugar/should_compile/T7669.hs
new file mode 100644
index 0000000..b665b65
--- /dev/null
+++ b/tests/deSugar/should_compile/T7669.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE EmptyCase #-}
+{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}  
+
+module T7669 where
+
+data Void
+
+foo :: Void -> ()
+foo x = case x of {}
+-- Should not get incomplete-pattern warning
+
diff --git a/tests/deSugar/should_compile/all.T b/tests/deSugar/should_compile/all.T
index bf3b068..4551709 100644
--- a/tests/deSugar/should_compile/all.T
+++ b/tests/deSugar/should_compile/all.T
@@ -101,3 +101,4 @@ test('T5252Take2',
      run_command, 
      ['$MAKE -s --no-print-directory T5252Take2'])
 test('T2431', normal, compile, ['-ddump-simpl -dsuppress-uniques'])
+test('T7669', normal, compile, [''])





More information about the ghc-commits mailing list