summaryrefslogtreecommitdiff
path: root/libraries/ghc-compact/tests/compact_mutable.hs
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ghc-compact/tests/compact_mutable.hs')
-rw-r--r--libraries/ghc-compact/tests/compact_mutable.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/libraries/ghc-compact/tests/compact_mutable.hs b/libraries/ghc-compact/tests/compact_mutable.hs
new file mode 100644
index 0000000000..33a405452d
--- /dev/null
+++ b/libraries/ghc-compact/tests/compact_mutable.hs
@@ -0,0 +1,9 @@
+import Control.Concurrent
+import Control.Exception
+import GHC.Compact
+
+data HiddenMVar = HiddenMVar (MVar ())
+
+main = do
+ m <- newEmptyMVar
+ compact (HiddenMVar m)