summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2015-06-01 11:30:17 -0700
committerEdward Z. Yang <ezyang@cs.stanford.edu>2015-06-03 09:56:36 -0700
commitcd9c5c6678e206ffcda955f66c26c7a4d89519c9 (patch)
tree7bebe797206f02d3102274f4a7f3b8ac426b68d7 /testsuite/tests/ffi
parent7ea156ae3e1c66e59935f0eb877ea1a3f3bfd5b9 (diff)
downloadhaskell-cd9c5c6678e206ffcda955f66c26c7a4d89519c9.tar.gz
Allow Any return in foreign prim, fixes #10460.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonpj, goldfire, austin Subscribers: bgamari, thomie Differential Revision: https://phabricator.haskell.org/D935 GHC Trac Issues: #10460
Diffstat (limited to 'testsuite/tests/ffi')
-rw-r--r--testsuite/tests/ffi/should_compile/T10460.hs5
-rw-r--r--testsuite/tests/ffi/should_compile/all.T1
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_compile/T10460.hs b/testsuite/tests/ffi/should_compile/T10460.hs
new file mode 100644
index 0000000000..74814533db
--- /dev/null
+++ b/testsuite/tests/ffi/should_compile/T10460.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE GHCForeignImportPrim #-}
+module T10460 where
+import GHC.Exts
+-- don't link me!
+foreign import prim "f" f :: Any -> Any
diff --git a/testsuite/tests/ffi/should_compile/all.T b/testsuite/tests/ffi/should_compile/all.T
index 84c7e8602e..ec6326b610 100644
--- a/testsuite/tests/ffi/should_compile/all.T
+++ b/testsuite/tests/ffi/should_compile/all.T
@@ -29,3 +29,4 @@ test('T3624', normal, compile, [''])
test('T3742', normal, compile, [''])
test('cc015', normal, compile, [''])
test('cc016', normal, compile, [''])
+test('T10460', normal, compile, [''])