From ec9a1a0d2c8bf713ad3aaa53bad970da9ec5a849 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 6 Sep 1999 12:32:48 +0000 Subject: [PATCH] [project @ 1999-09-06 12:32:48 by simonmar] Add test for line numbers/string gaps. --- ghc/tests/reader/should_fail/read011.hs | 7 +++++++ ghc/tests/reader/should_fail/read011.stderr | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 ghc/tests/reader/should_fail/read011.hs create mode 100644 ghc/tests/reader/should_fail/read011.stderr diff --git a/ghc/tests/reader/should_fail/read011.hs b/ghc/tests/reader/should_fail/read011.hs new file mode 100644 index 0000000..4642061 --- /dev/null +++ b/ghc/tests/reader/should_fail/read011.hs @@ -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 index 0000000..f467a3f --- /dev/null +++ b/ghc/tests/reader/should_fail/read011.stderr @@ -0,0 +1,4 @@ +read010.hs:7: parse error on input `=' + +Compilation had errors + -- 1.7.10.4