diff options
Diffstat (limited to 'testsuite/tests/ffi/should_compile/cc012.hs')
-rw-r--r-- | testsuite/tests/ffi/should_compile/cc012.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_compile/cc012.hs b/testsuite/tests/ffi/should_compile/cc012.hs new file mode 100644 index 0000000000..288f9acd02 --- /dev/null +++ b/testsuite/tests/ffi/should_compile/cc012.hs @@ -0,0 +1,6 @@ +{-# LANGUAGE ForeignFunctionInterface #-} +-- !!! test that infix operators can be exported with foreign export, +-- and that we can export something which isn't defined in this module. +module ShouldCompile where +foreign export ccall "plusInt" (+) :: Int -> Int -> Int + |