diff options
Diffstat (limited to 'testsuite/tests/ffi/should_fail/ccfail002.hs')
-rw-r--r-- | testsuite/tests/ffi/should_fail/ccfail002.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_fail/ccfail002.hs b/testsuite/tests/ffi/should_fail/ccfail002.hs new file mode 100644 index 0000000000..977faa2f7c --- /dev/null +++ b/testsuite/tests/ffi/should_fail/ccfail002.hs @@ -0,0 +1,11 @@ + +{-# LANGUAGE ForeignFunctionInterface, UnboxedTuples, MagicHash, UnliftedFFITypes #-} + +-- Test for Trac #1680 + +module ShouldFail where + +import GHC.Exts + +foreign import ccall unsafe "foo" + foo :: Int# -> Int# -> Int# -> (# Int# , Int#, Int# #) |