summaryrefslogtreecommitdiff
path: root/libraries/ghc-prim
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-11-23 16:41:50 +0000
committerIan Lynagh <ian@well-typed.com>2012-11-23 16:41:50 +0000
commit87e61d87e0efc8133fbbc58c8cd878ae69e4a438 (patch)
treeb44523938843cfd97861a1108c8eced44987d006 /libraries/ghc-prim
parentce67249c24fb3cf9f0706111a40f653d0271276a (diff)
downloadhaskell-87e61d87e0efc8133fbbc58c8cd878ae69e4a438.tar.gz
Add a test for #6026 (fixity info for primops)
Diffstat (limited to 'libraries/ghc-prim')
-rw-r--r--libraries/ghc-prim/tests/T6026.hs10
-rw-r--r--libraries/ghc-prim/tests/T6026.stdout1
2 files changed, 11 insertions, 0 deletions
diff --git a/libraries/ghc-prim/tests/T6026.hs b/libraries/ghc-prim/tests/T6026.hs
new file mode 100644
index 0000000000..d59e7f0288
--- /dev/null
+++ b/libraries/ghc-prim/tests/T6026.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE MagicHash #-}
+
+module Main (main) where
+
+import GHC.Prim
+import GHC.Types
+
+main :: IO ()
+main = print (I# (1# +# 2# *# 3# +# 4#))
+
diff --git a/libraries/ghc-prim/tests/T6026.stdout b/libraries/ghc-prim/tests/T6026.stdout
new file mode 100644
index 0000000000..b4de394767
--- /dev/null
+++ b/libraries/ghc-prim/tests/T6026.stdout
@@ -0,0 +1 @@
+11