diff options
Diffstat (limited to 'testsuite/tests/unboxedsums/unboxedsums11.hs')
-rw-r--r-- | testsuite/tests/unboxedsums/unboxedsums11.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/unboxedsums/unboxedsums11.hs b/testsuite/tests/unboxedsums/unboxedsums11.hs new file mode 100644 index 0000000000..2cac84767e --- /dev/null +++ b/testsuite/tests/unboxedsums/unboxedsums11.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE UnboxedSums, MagicHash #-} + +module Main where + +type Ty = (# () | () #) + +{-# NOINLINE showTy #-} +showTy :: Ty -> String +showTy (# _ | #) = "(# _ | #)" +showTy (# | () #) = "(# | () #)" + +main :: IO () +main = do + print (showTy (# undefined | #)) + print (showTy (# | () #)) |