summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/Shared001.hs
blob: 4d827b85ba9bf0da9c950c6d7257575a11754b64 (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