summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_compile/1357.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ffi/should_compile/1357.hs')
-rw-r--r--testsuite/tests/ffi/should_compile/1357.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_compile/1357.hs b/testsuite/tests/ffi/should_compile/1357.hs
new file mode 100644
index 0000000000..1f5479bc1c
--- /dev/null
+++ b/testsuite/tests/ffi/should_compile/1357.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE ForeignFunctionInterface #-}
+module T where
+
+import Foreign
+foreign import ccall "f" f :: FunPtr (Int -> IO ())