summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_fail/T7506.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ffi/should_fail/T7506.stderr')
-rw-r--r--testsuite/tests/ffi/should_fail/T7506.stderr7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_fail/T7506.stderr b/testsuite/tests/ffi/should_fail/T7506.stderr
new file mode 100644
index 0000000000..e8e95a9275
--- /dev/null
+++ b/testsuite/tests/ffi/should_fail/T7506.stderr
@@ -0,0 +1,7 @@
+
+T7506.hs:6:1:
+ Unacceptable type in foreign declaration: Int -> IO ()
+ A foreign-imported address (via &foo) must have type (Ptr a) or (FunPtr a)
+ When checking declaration:
+ foreign import ccall safe "static stdio.h &putchar" c_putchar
+ :: Int -> IO ()