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