diff options
Diffstat (limited to 'testsuite/tests/ffi/should_compile/3742.hs')
-rw-r--r-- | testsuite/tests/ffi/should_compile/3742.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_compile/3742.hs b/testsuite/tests/ffi/should_compile/3742.hs new file mode 100644 index 0000000000..c16b6009eb --- /dev/null +++ b/testsuite/tests/ffi/should_compile/3742.hs @@ -0,0 +1,12 @@ +module ShouldCompile where + +import Foreign +import Foreign.C + +-- extra space before the function name: +foreign import ccall unsafe " g_get_application_name" + g_get_application_name :: (IO (Ptr CChar)) + +-- and after: +foreign import ccall unsafe "g_get_application_name " + g_get_application_name' :: (IO (Ptr CChar)) |