[project @ 1998-02-03 11:32:42 by simonm]
authorsimonm <unknown>
Tue, 3 Feb 1998 11:32:43 +0000 (11:32 +0000)
committersimonm <unknown>
Tue, 3 Feb 1998 11:32:43 +0000 (11:32 +0000)
illegal char test

ghc/tests/reader/should_fail/read005.hs [new file with mode: 0644]
ghc/tests/reader/should_fail/read005.stderr [new file with mode: 0644]

diff --git a/ghc/tests/reader/should_fail/read005.hs b/ghc/tests/reader/should_fail/read005.hs
new file mode 100644 (file)
index 0000000..8ed88c0
--- /dev/null
@@ -0,0 +1,4 @@
+module Tests where
+
+-- this char is forbidden
+c = '\&'
diff --git a/ghc/tests/reader/should_fail/read005.stderr b/ghc/tests/reader/should_fail/read005.stderr
new file mode 100644 (file)
index 0000000..36a567b
--- /dev/null
@@ -0,0 +1,2 @@
+read005.hs:4:7: Illegal character escape: `\&'
+read005.hs:4:7:  on input: "&"