diff options
Diffstat (limited to 'testsuite/tests/ffi/should_run/2276_ghci.hs')
-rw-r--r-- | testsuite/tests/ffi/should_run/2276_ghci.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_run/2276_ghci.hs b/testsuite/tests/ffi/should_run/2276_ghci.hs new file mode 100644 index 0000000000..0ee1ee91ff --- /dev/null +++ b/testsuite/tests/ffi/should_run/2276_ghci.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
|