summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/pragma002.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/driver/pragma002.hs')
-rw-r--r--testsuite/tests/driver/pragma002.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/driver/pragma002.hs b/testsuite/tests/driver/pragma002.hs
new file mode 100644
index 0000000000..48c66101bc
--- /dev/null
+++ b/testsuite/tests/driver/pragma002.hs
@@ -0,0 +1,10 @@
+-- an options pragma that needs more than 1k of buffer to read
+{-# OPTIONS_GHC
+ -w #-}
+
+module Pragma002 () where
+
+-- This will make a warning if the pragam isn't picked up
+foo _ = ()
+foo _ = ()
+