summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_run/T17471.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ffi/should_run/T17471.hs')
-rw-r--r--testsuite/tests/ffi/should_run/T17471.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_run/T17471.hs b/testsuite/tests/ffi/should_run/T17471.hs
new file mode 100644
index 0000000000..bcaebc59cd
--- /dev/null
+++ b/testsuite/tests/ffi/should_run/T17471.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE ForeignFunctionInterface #-}
+module Main where
+
+import Foreign.C.Types
+
+foreign import ccall "foo" foo :: IO CInt
+
+main :: IO ()
+main = foo >>= print