diff options
Diffstat (limited to 'testsuite/tests/safeHaskell/flags/SafeFlags22.hs')
-rw-r--r-- | testsuite/tests/safeHaskell/flags/SafeFlags22.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/flags/SafeFlags22.hs b/testsuite/tests/safeHaskell/flags/SafeFlags22.hs new file mode 100644 index 0000000000..0b94cff91c --- /dev/null +++ b/testsuite/tests/safeHaskell/flags/SafeFlags22.hs @@ -0,0 +1,11 @@ +{-# OPTIONS_GHC -fwarn-unsafe #-} +-- | Basic test to see if Safe warning flags compile +-- Warn if module is infered unsafe +-- In this test the warning _should_ fire +module SafeFlags22 where + +import System.IO.Unsafe + +f :: Int +f = 1 + |