summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_compile/T22034.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ffi/should_compile/T22034.hs')
-rw-r--r--testsuite/tests/ffi/should_compile/T22034.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_compile/T22034.hs b/testsuite/tests/ffi/should_compile/T22034.hs
new file mode 100644
index 0000000000..8c065c3ea1
--- /dev/null
+++ b/testsuite/tests/ffi/should_compile/T22034.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE CApiFFI #-}
+module T22034 where
+
+import Foreign.C.Types
+
+foreign import capi "T22034.h foo"
+ c_foo :: IO (ConstPtr CInt)
+
+foreign import capi "T22034.h value bar"
+ c_bar :: ConstPtr CDouble