summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-12-12 12:02:37 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2022-12-12 12:06:30 +0000
commit269c526054684e8358651d5a3497c4df76176a02 (patch)
treef37297c21fd8570b41b4a7ca0a0becc912a577fa
parentbfd7c1e653c207dd5dea599f16ee4afad03f2ea5 (diff)
downloadhaskell-wip/t21476.tar.gz
Add test for #21476wip/t21476
This issues seems to have been fixed since the ticket was made, so let's add a test and move on. Fixes #21476
-rw-r--r--testsuite/tests/simplCore/should_compile/T21476.hs4
-rw-r--r--testsuite/tests/simplCore/should_compile/all.T1
2 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/simplCore/should_compile/T21476.hs b/testsuite/tests/simplCore/should_compile/T21476.hs
new file mode 100644
index 0000000000..759d085c6f
--- /dev/null
+++ b/testsuite/tests/simplCore/should_compile/T21476.hs
@@ -0,0 +1,4 @@
+{-# LANGUAGE MagicHash #-}
+module T21476 where
+import GHC.Exts
+f = keepAlive#
diff --git a/testsuite/tests/simplCore/should_compile/all.T b/testsuite/tests/simplCore/should_compile/all.T
index 08ff9329ec..46bf60e1ae 100644
--- a/testsuite/tests/simplCore/should_compile/all.T
+++ b/testsuite/tests/simplCore/should_compile/all.T
@@ -456,3 +456,4 @@ test('T22317', [grep_errmsg(r'ANSWER = YES') ], compile, ['-O -dinline-check m -
test('T22494', [grep_errmsg(r'case') ], compile, ['-O -ddump-simpl -dsuppress-uniques'])
test('T22491', normal, compile, ['-O2'])
+test('T21476', normal, compile, [''])