summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_run/ffi018.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ffi/should_run/ffi018.hs')
-rw-r--r--testsuite/tests/ffi/should_run/ffi018.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_run/ffi018.hs b/testsuite/tests/ffi/should_run/ffi018.hs
new file mode 100644
index 0000000000..c529ea87e6
--- /dev/null
+++ b/testsuite/tests/ffi/should_run/ffi018.hs
@@ -0,0 +1,10 @@
+
+import Data.Int
+
+main :: IO ()
+main = do x <- f
+ print (x == 0x123456789ABCDEF0)
+
+foreign import ccall "ffi018.h f"
+ f :: IO Int64
+