summaryrefslogtreecommitdiff
path: root/testsuite/tests/unboxedsums/T20859.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/unboxedsums/T20859.hs')
-rw-r--r--testsuite/tests/unboxedsums/T20859.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/unboxedsums/T20859.hs b/testsuite/tests/unboxedsums/T20859.hs
new file mode 100644
index 0000000000..5e7c14bab1
--- /dev/null
+++ b/testsuite/tests/unboxedsums/T20859.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE MagicHash #-}
+{-# LANGUAGE UnboxedSums #-}
+
+module T20859 where
+
+import GHC.Exts
+ ( Double#, Int#, Word# )
+
+foo :: (# Int# | Double# | Word# #) -> (# | | #) Int# Double# Word#
+foo x = x