summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-07-15 16:56:30 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2021-07-22 21:41:39 +0100
commit40e18b29b2bdf0771a0d31efdf6a5f69c229663f (patch)
tree9453d29a8b5f024c1803d41b600095e1b0d66489
parent10124b16538091806953d732e24ca485a0664895 (diff)
downloadhaskell-40e18b29b2bdf0771a0d31efdf6a5f69c229663f.tar.gz
Failing splice static pointer test
-rw-r--r--testsuite/tests/rename/should_compile/SP_Splice.hs9
-rw-r--r--testsuite/tests/rename/should_compile/all.T1
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/SP_Splice.hs b/testsuite/tests/rename/should_compile/SP_Splice.hs
new file mode 100644
index 0000000000..e540296a21
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/SP_Splice.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE TemplateHaskell #-}
+{-# LANGUAGE StaticPointers #-}
+module SP where
+
+import GHC.StaticPtr
+
+unit = $(deRefStaticPtr $ (static [| () |]))
+
+
diff --git a/testsuite/tests/rename/should_compile/all.T b/testsuite/tests/rename/should_compile/all.T
index 5260145edd..c9d63010d9 100644
--- a/testsuite/tests/rename/should_compile/all.T
+++ b/testsuite/tests/rename/should_compile/all.T
@@ -176,3 +176,4 @@ test('T18264', [], makefile_test, ['T18264'])
test('T18302', expect_broken(18302), compile, [''])
test('T17853', [], multimod_compile, ['T17853', '-v0'])
test('T19966', expect_broken(19966), compile, ['-fdefer-out-of-scope-variables'])
+test('SP_Splice', normal, compile, [''])