[project @ 1999-09-06 12:32:48 by simonmar]
authorsimonmar <unknown>
Mon, 6 Sep 1999 12:32:48 +0000 (12:32 +0000)
committersimonmar <unknown>
Mon, 6 Sep 1999 12:32:48 +0000 (12:32 +0000)
Add test for line numbers/string gaps.

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

diff --git a/ghc/tests/reader/should_fail/read011.hs b/ghc/tests/reader/should_fail/read011.hs
new file mode 100644 (file)
index 0000000..4642061
--- /dev/null
@@ -0,0 +1,7 @@
+-- !!! Test line numbers in presence of string gaps.
+
+main = print "a\
+            \b\
+            \c"
+
+wibble = = -- this is a parse error on line 7
diff --git a/ghc/tests/reader/should_fail/read011.stderr b/ghc/tests/reader/should_fail/read011.stderr
new file mode 100644 (file)
index 0000000..f467a3f
--- /dev/null
@@ -0,0 +1,4 @@
+read010.hs:7: parse error on input `='
+
+Compilation had errors
+