From 0d5db29b99dc8f48d73e3c79184fad67d654c7af Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 5 Jan 2000 17:24:51 +0000 Subject: [PATCH] [project @ 2000-01-05 17:24:51 by simonmar] Add test for unterminated ``. --- ghc/tests/reader/should_fail/Makefile | 2 ++ ghc/tests/reader/should_fail/read013.hs | 4 ++++ ghc/tests/reader/should_fail/read013.stderr | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 ghc/tests/reader/should_fail/read013.hs create mode 100644 ghc/tests/reader/should_fail/read013.stderr diff --git a/ghc/tests/reader/should_fail/Makefile b/ghc/tests/reader/should_fail/Makefile index 45f2223..389a4ca 100644 --- a/ghc/tests/reader/should_fail/Makefile +++ b/ghc/tests/reader/should_fail/Makefile @@ -4,4 +4,6 @@ include $(TOP)/mk/should_fail.mk SRC_HC_OPTS += -noC -ddump-parsed +read013_HC_OPTS += -fglasgow-exts + include $(TOP)/mk/target.mk diff --git a/ghc/tests/reader/should_fail/read013.hs b/ghc/tests/reader/should_fail/read013.hs new file mode 100644 index 0000000..97e926d --- /dev/null +++ b/ghc/tests/reader/should_fail/read013.hs @@ -0,0 +1,4 @@ +module Main where + +-- !!! unterminated `` +a = ``s`` diff --git a/ghc/tests/reader/should_fail/read013.stderr b/ghc/tests/reader/should_fail/read013.stderr new file mode 100644 index 0000000..774e4ca --- /dev/null +++ b/ghc/tests/reader/should_fail/read013.stderr @@ -0,0 +1,4 @@ +read013.hs:4: unterminated `` + +Compilation had errors + -- 1.7.10.4