From 8fc56424e66224d993fcc2dcc2931661308e5dff Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 15 Mar 2001 10:00:32 +0000 Subject: [PATCH] [project @ 2001-03-15 10:00:32 by simonmar] newlines in strings aren't allowed. --- ghc/tests/reader/should_fail/read002.hs | 6 ++++++ ghc/tests/reader/should_fail/read002.stderr | 1 + 2 files changed, 7 insertions(+) create mode 100644 ghc/tests/reader/should_fail/read002.hs create mode 100644 ghc/tests/reader/should_fail/read002.stderr diff --git a/ghc/tests/reader/should_fail/read002.hs b/ghc/tests/reader/should_fail/read002.hs new file mode 100644 index 0000000..869cb86 --- /dev/null +++ b/ghc/tests/reader/should_fail/read002.hs @@ -0,0 +1,6 @@ +module ShouldFail where + +-- !!! newlines in strings aren't allowed + +f = " +" diff --git a/ghc/tests/reader/should_fail/read002.stderr b/ghc/tests/reader/should_fail/read002.stderr new file mode 100644 index 0000000..c7c56e7 --- /dev/null +++ b/ghc/tests/reader/should_fail/read002.stderr @@ -0,0 +1 @@ +read002.hs:5: error in character literal -- 1.7.10.4