diff options
Diffstat (limited to 'testsuite/tests/safeHaskell/flags/SafeFlags29.hs')
-rw-r--r-- | testsuite/tests/safeHaskell/flags/SafeFlags29.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/flags/SafeFlags29.hs b/testsuite/tests/safeHaskell/flags/SafeFlags29.hs new file mode 100644 index 0000000000..389fe48216 --- /dev/null +++ b/testsuite/tests/safeHaskell/flags/SafeFlags29.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE Safe #-} +{-# OPTIONS_GHC -trust base -trust bytestring #-} +-- | 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 SafeFlags29 where + +f :: Int +f = 1 + |