summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/Shared001.hs
blob: 4f6a3d9c3d81b4ed02ac6736d08c4f5641ae6549 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE ForeignFunctionInterface #-}
module Shared001 where

-- Test for building DLLs with ghc -shared, see #2745

f :: Int -> Int
f x = x+1

foreign export ccall f :: Int -> Int