diff options
author | Ben Gamari <ben@smart-cactus.org> | 2015-12-17 06:08:02 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-12-17 12:11:03 +0100 |
commit | b20a65d5bf0ebf656c67f57e9b2c1094b459b827 (patch) | |
tree | 0b60be9d320cf3fc17484b76ab2030610e29a340 /testsuite/tests/ghc-api | |
parent | acd447e671e90c2f964069f268943db0f2a57a7c (diff) | |
download | haskell-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.hs | 24 |
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 |