summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/safeLanguage/SafeLang03.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/safeHaskell/safeLanguage/SafeLang03.hs')
-rw-r--r--testsuite/tests/safeHaskell/safeLanguage/SafeLang03.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/safeLanguage/SafeLang03.hs b/testsuite/tests/safeHaskell/safeLanguage/SafeLang03.hs
new file mode 100644
index 0000000000..4f3bce7e0a
--- /dev/null
+++ b/testsuite/tests/safeHaskell/safeLanguage/SafeLang03.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE Safe #-}
+{-# OPTIONS_GHC -fenable-rewrite-rules #-}
+
+-- | Test SafeLanguage disables things
+module SafeLang03 where
+
+{-# RULES "f" f = undefined #-}
+f :: Int
+f = 1
+