summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/readFail044.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_fail/readFail044.hs')
-rw-r--r--testsuite/tests/parser/should_fail/readFail044.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/readFail044.hs b/testsuite/tests/parser/should_fail/readFail044.hs
new file mode 100644
index 0000000000..2735d3363b
--- /dev/null
+++ b/testsuite/tests/parser/should_fail/readFail044.hs
@@ -0,0 +1,9 @@
+
+-- We should get an error message, including a location, for these flags:
+{-# OPTIONS_GHC -this-flag-does-not-exist -nor-does-this-one #-}
+
+module Foo where
+
+foo :: ()
+foo = ()
+