summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/flags/SafeFlags21.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/safeHaskell/flags/SafeFlags21.hs')
-rw-r--r--testsuite/tests/safeHaskell/flags/SafeFlags21.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/flags/SafeFlags21.hs b/testsuite/tests/safeHaskell/flags/SafeFlags21.hs
new file mode 100644
index 0000000000..c7e8b0d87a
--- /dev/null
+++ b/testsuite/tests/safeHaskell/flags/SafeFlags21.hs
@@ -0,0 +1,9 @@
+{-# OPTIONS_GHC -fwarn-unsafe #-}
+-- | Basic test to see if Safe warning flags compile
+-- Warn if module is infered unsafe
+-- In this test the warning _shouldn't_ fire
+module SafeFlags21 where
+
+f :: Int
+f = 1
+