From 54a063d2fb4d94299349f365cbeddc6d305563bd Mon Sep 17 00:00:00 2001
From: simonm <unknown>
Date: Tue, 3 Feb 1998 11:32:43 +0000
Subject: [PATCH] [project @ 1998-02-03 11:32:42 by simonm] illegal char test

---
 ghc/tests/reader/should_fail/read005.hs     | 4 ++++
 ghc/tests/reader/should_fail/read005.stderr | 2 ++
 2 files changed, 6 insertions(+)
 create mode 100644 ghc/tests/reader/should_fail/read005.hs
 create mode 100644 ghc/tests/reader/should_fail/read005.stderr

diff --git a/ghc/tests/reader/should_fail/read005.hs b/ghc/tests/reader/should_fail/read005.hs
new file mode 100644
index 000000000000..8ed88c0ea0ab
--- /dev/null
+++ b/ghc/tests/reader/should_fail/read005.hs
@@ -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
index 000000000000..36a567b27e6a
--- /dev/null
+++ b/ghc/tests/reader/should_fail/read005.stderr
@@ -0,0 +1,2 @@
+read005.hs:4:7: Illegal character escape: `\&'
+read005.hs:4:7:  on input: "&"
-- 
GitLab