diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-07-15 16:56:30 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2021-07-19 11:54:48 +0100 |
commit | 238705797518f9e0b0314e16bc77b86405b5a9e9 (patch) | |
tree | 69e4732fcdef3c251087e51e2247a23c63e2c7d1 | |
parent | 9a37549e73100687f0e448e7d48a0f523bc19655 (diff) | |
download | haskell-238705797518f9e0b0314e16bc77b86405b5a9e9.tar.gz |
Failing splice static pointer test
-rw-r--r-- | testsuite/tests/rename/should_compile/SP_Splice.hs | 9 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/all.T | 1 |
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, ['']) |