[commit: ghc] master: Test Trac #7243 (b61091d)

git at git.haskell.org git at git.haskell.org
Thu Nov 27 15:43:36 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/b61091d3b042305ce21bb00b28a81f903b522394/ghc

>---------------------------------------------------------------

commit b61091d3b042305ce21bb00b28a81f903b522394
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Nov 27 15:18:30 2014 +0000

    Test Trac #7243


>---------------------------------------------------------------

b61091d3b042305ce21bb00b28a81f903b522394
 testsuite/tests/ffi/should_fail/T7243.hs     | 4 ++++
 testsuite/tests/ffi/should_fail/T7243.stderr | 5 +++++
 testsuite/tests/ffi/should_fail/all.T        | 2 ++
 3 files changed, 11 insertions(+)

diff --git a/testsuite/tests/ffi/should_fail/T7243.hs b/testsuite/tests/ffi/should_fail/T7243.hs
new file mode 100644
index 0000000..c9714e4
--- /dev/null
+++ b/testsuite/tests/ffi/should_fail/T7243.hs
@@ -0,0 +1,4 @@
+module T7243 where
+
+import Foreign.Ptr
+foreign import ccall "wrapper" foo :: IO (FunPtr ())
diff --git a/testsuite/tests/ffi/should_fail/T7243.stderr b/testsuite/tests/ffi/should_fail/T7243.stderr
new file mode 100644
index 0000000..727ae0f
--- /dev/null
+++ b/testsuite/tests/ffi/should_fail/T7243.stderr
@@ -0,0 +1,5 @@
+
+T7243.hs:4:1:
+    Unacceptable type in foreign declaration: One argument expected
+    When checking declaration:
+      foreign import ccall safe "wrapper" foo :: IO (FunPtr ())
diff --git a/testsuite/tests/ffi/should_fail/all.T b/testsuite/tests/ffi/should_fail/all.T
index d1cba3c..78b7007 100644
--- a/testsuite/tests/ffi/should_fail/all.T
+++ b/testsuite/tests/ffi/should_fail/all.T
@@ -16,3 +16,5 @@ test('ccall_value', normal, compile_fail, [''])
 test('capi_value_function', normal, compile_fail, [''])
 test('T5664', normal, compile_fail, ['-v0'])
 test('T7506', normal, compile_fail, [''])
+test('T7243', normal, compile_fail, [''])
+



More information about the ghc-commits mailing list