summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_fail/T7506.stderr
blob: e8e95a92756d0873f32d3d72bc9d00c41637dcbd (plain)
1
2
3
4
5
6
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 ()