[project @ 1999-09-06 12:42:29 by simonmar]
authorsimonmar <unknown>
Mon, 6 Sep 1999 12:42:29 +0000 (12:42 +0000)
committersimonmar <unknown>
Mon, 6 Sep 1999 12:42:29 +0000 (12:42 +0000)
Add parse error/layout test.

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

diff --git a/ghc/tests/reader/should_fail/read012.hs b/ghc/tests/reader/should_fail/read012.hs
new file mode 100644 (file)
index 0000000..4a78088
--- /dev/null
@@ -0,0 +1,9 @@
+-- !!! test parse errors due to tokens inserted by layout
+
+-- used to report "Parse error on input `'" in 4.04pl0.
+
+main = let 
+       f = (a,
+       g = 1
+       in f
+
diff --git a/ghc/tests/reader/should_fail/read012.stderr b/ghc/tests/reader/should_fail/read012.stderr
new file mode 100644 (file)
index 0000000..5105742
--- /dev/null
@@ -0,0 +1,4 @@
+read012.hs:7: parse error (possibly incorrect indentation)
+
+Compilation had errors
+