summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_compile/cc009.hs
blob: 3ece3a9a24351e29b8d04afbae629332c9c35a79 (plain)
1
2
3
4
5
6
7
8
-- !!! cc009 -- foreign label returning newtype of Addr
module ShouldCompile where

import Foreign
type Addr = Ptr ()
newtype NPtr a = NPtr Addr

foreign import ccall "&" foo :: NPtr Int