From abec6054f3e7110b73f052e3e81ade97ef54188f Mon Sep 17 00:00:00 2001
From: simonmar <unknown>
Date: Mon, 4 Sep 2000 13:59:55 +0000
Subject: [PATCH] [project @ 2000-09-04 13:59:55 by simonmar] test for bogus
 parse caused by Happy bug

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

diff --git a/ghc/tests/reader/should_fail/read015.hs b/ghc/tests/reader/should_fail/read015.hs
new file mode 100644
index 000000000000..6920083483e1
--- /dev/null
+++ b/ghc/tests/reader/should_fail/read015.hs
@@ -0,0 +1,5 @@
+module Test where
+
+-- should fail; doesn't with happy 1.8.
+f = f where b = f
+            c = (b
diff --git a/ghc/tests/reader/should_fail/read015.stderr b/ghc/tests/reader/should_fail/read015.stderr
new file mode 100644
index 000000000000..d2bdab61acd9
--- /dev/null
+++ b/ghc/tests/reader/should_fail/read015.stderr
@@ -0,0 +1,4 @@
+read015.hs:6: parse error (possibly incorrect indentation)
+
+Compilation had errors
+
-- 
GitLab