summaryrefslogtreecommitdiff
path: root/testsuite/tests/array/should_run/T21962.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/array/should_run/T21962.hs')
-rw-r--r--testsuite/tests/array/should_run/T21962.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/array/should_run/T21962.hs b/testsuite/tests/array/should_run/T21962.hs
new file mode 100644
index 0000000000..ab96760289
--- /dev/null
+++ b/testsuite/tests/array/should_run/T21962.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE UnboxedTuples #-}
+{-# LANGUAGE MagicHash #-}
+
+module Main where
+
+import GHC.IO
+import GHC.Exts
+
+main :: IO ()
+main = do
+ IO $ \s0 -> case newArray# 0# () s0 of (# s1, arr #) -> (# s1, () #)
+ IO $ \s0 -> case newArrayArray# 0# s0 of (# s1, arr #) -> (# s1, () #)