summaryrefslogtreecommitdiff
path: root/testsuite/tests/plugins/plugins14.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/plugins/plugins14.hs')
-rw-r--r--testsuite/tests/plugins/plugins14.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/plugins/plugins14.hs b/testsuite/tests/plugins/plugins14.hs
new file mode 100644
index 0000000000..6f4c2f5780
--- /dev/null
+++ b/testsuite/tests/plugins/plugins14.hs
@@ -0,0 +1,11 @@
+{-# OPTIONS_GHC -fplugin Simple.RemovePlugin #-}
+{-# OPTIONS_GHC -fplugin-opt Simple.RemovePlugin:map #-}
+{-# OPTIONS_GHC -fplugin-opt Simple.RemovePlugin:interface #-}
+module A where
+-- test if a definition can be removed from loaded interface
+
+map :: ()
+map = ()
+
+x :: ()
+x = map