summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/check/CheckB.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/safeHaskell/check/CheckB.hs')
-rw-r--r--testsuite/tests/safeHaskell/check/CheckB.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/check/CheckB.hs b/testsuite/tests/safeHaskell/check/CheckB.hs
new file mode 100644
index 0000000000..7e649a1598
--- /dev/null
+++ b/testsuite/tests/safeHaskell/check/CheckB.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE Safe #-}
+
+-- Since Safe we require base package be trusted to compile
+module CheckB where
+
+import CheckB_Aux
+
+mainM :: Int -> Int
+mainM n = trace "Allowed Leak" $ n * 2
+