projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f91f525
)
[project @ 1999-11-09 11:38:28 by simonmar]
author
simonmar
<unknown>
Tue, 9 Nov 1999 11:38:28 +0000
(11:38 +0000)
committer
simonmar
<unknown>
Tue, 9 Nov 1999 11:38:28 +0000
(11:38 +0000)
Test for lit-lits in patterns.
ghc/tests/deSugar/should_compile/ds049.hs
[new file with mode: 0644]
patch
|
blob
diff --git a/ghc/tests/deSugar/should_compile/ds049.hs
b/ghc/tests/deSugar/should_compile/ds049.hs
new file mode 100644
(file)
index 0000000..
b2438d1
--- /dev/null
+++ b/
ghc/tests/deSugar/should_compile/ds049.hs
@@ -0,0
+1,14
@@
+{-# OPTIONS -fglasgow-exts #-}
+
+module ShouldCompile where
+
+-- !!! test lit-lits in patterns
+
+import Addr
+
+litlit_int (``1'' :: Int) = 42
+litlit_word (``1'' :: Word) = 42
+litlit_char (`` '\n' '' :: Char) = 42
+litlit_addr (``NULL'' :: Addr) = 42
+litlit_float (``1.0'' :: Float) = 42
+litlit_double (``1.0'' :: Double) = 42