summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/flags/SafeFlags27.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/safeHaskell/flags/SafeFlags27.hs')
-rw-r--r--testsuite/tests/safeHaskell/flags/SafeFlags27.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/flags/SafeFlags27.hs b/testsuite/tests/safeHaskell/flags/SafeFlags27.hs
new file mode 100644
index 0000000000..e6da435db4
--- /dev/null
+++ b/testsuite/tests/safeHaskell/flags/SafeFlags27.hs
@@ -0,0 +1,9 @@
+{-# OPTIONS_GHC -fno-safe-infer #-}
+-- | Basic test to see if no safe infer flag compiles
+-- This module would usually infer safely, so it shouldn't be safe now.
+-- We don't actually check that here though, see test '' for that.
+module SafeFlags27 where
+
+f :: Int
+f = 1
+