diff options
Diffstat (limited to 'testsuite/tests/deSugar/should_run/dsrun013.hs')
-rw-r--r-- | testsuite/tests/deSugar/should_run/dsrun013.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_run/dsrun013.hs b/testsuite/tests/deSugar/should_run/dsrun013.hs new file mode 100644 index 0000000000..c9cc59ead9 --- /dev/null +++ b/testsuite/tests/deSugar/should_run/dsrun013.hs @@ -0,0 +1,16 @@ +{-# LANGUAGE UnboxedTuples #-} + +-- This one killed GHC 6.4.1, because the pattern match on the +-- unboxed tuple generates a failure case, which defeated the +-- rather fragile code in the desugarer +-- See DsExpr.lhs, the HsCase case + +module Main where + +foo xs ys = case (# null xs, null ys #) of + (# True, False #) -> "One" + (# False, True #) -> "Two" + +main :: IO () +main = print (foo [] "ok") + |