summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2015-12-17 06:08:02 -0500
committerBen Gamari <ben@smart-cactus.org>2015-12-17 12:11:03 +0100
commitb20a65d5bf0ebf656c67f57e9b2c1094b459b827 (patch)
tree0b60be9d320cf3fc17484b76ab2030610e29a340 /testsuite/tests/ghc-api
parentacd447e671e90c2f964069f268943db0f2a57a7c (diff)
downloadhaskell-b20a65d5bf0ebf656c67f57e9b2c1094b459b827.tar.gz
testsuite: Add missing LiteralsTest2.hs
Diffstat (limited to 'testsuite/tests/ghc-api')
-rw-r--r--testsuite/tests/ghc-api/annotations-literals/LiteralsTest2.hs24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/annotations-literals/LiteralsTest2.hs b/testsuite/tests/ghc-api/annotations-literals/LiteralsTest2.hs
new file mode 100644
index 0000000000..e85eb17fd3
--- /dev/null
+++ b/testsuite/tests/ghc-api/annotations-literals/LiteralsTest2.hs
@@ -0,0 +1,24 @@
+{-# LANGUAGE MagicHash #-}
+module LiteralsTest2 where
+
+x,y :: Int
+x = 0003
+y = 0x04
+
+s :: String
+s = "\x20"
+
+c :: Char
+c = '\x20'
+
+d :: Double
+d = 0.00
+
+blah = x
+ where
+ charH = '\x41'#
+ intH = 0004#
+ wordH = 005##
+ floatH = 3.20#
+ doubleH = 04.16##
+ x = 1