summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_run/T2276.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ffi/should_run/T2276.hs')
-rw-r--r--testsuite/tests/ffi/should_run/T2276.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_run/T2276.hs b/testsuite/tests/ffi/should_run/T2276.hs
new file mode 100644
index 0000000000..0ee1ee91ff
--- /dev/null
+++ b/testsuite/tests/ffi/should_run/T2276.hs
@@ -0,0 +1,7 @@
+import Foreign
+import Foreign.C
+
+foreign import stdcall "&test" ptest :: FunPtr (CInt -> IO ())
+foreign import stdcall "dynamic" ctest :: FunPtr (CInt -> IO ()) -> CInt -> IO ()
+
+main = ctest ptest 3