Add test cases that reproduce #7241.
[cabal.git] / cabal-testsuite / PackageTests / CCompilerOverride / Main.hs
blobe84a83f669b3bdfebfb81ed4a8fb32eda77dd445
1 {-# LANGUAGE ForeignFunctionInterface #-}
3 module Main (main) where
5 foreign import ccall "foo" foo :: Int -> Int
7 main :: IO ()
8 main = do
9 let x = foo 0
10 y = x
11 let x = y
12 print x
13 pure ()