summaryrefslogtreecommitdiff
path: root/testsuite/tests/dynlibs/T3807Export.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dynlibs/T3807Export.hs')
-rw-r--r--testsuite/tests/dynlibs/T3807Export.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/dynlibs/T3807Export.hs b/testsuite/tests/dynlibs/T3807Export.hs
new file mode 100644
index 0000000000..70d9e9b5fb
--- /dev/null
+++ b/testsuite/tests/dynlibs/T3807Export.hs
@@ -0,0 +1,11 @@
+
+{-# LANGUAGE ForeignFunctionInterface #-}
+module T3807Export where
+
+import Foreign.C
+
+foo :: IO CInt
+foo = return (3 + read "123")
+
+foreign export ccall foo :: IO CInt
+