Add “Ignore warning” option to cabal check
[cabal.git] / cabal-testsuite / PackageTests / PreProcess / Hsc2HsOptions / Main.hs
blob3e380fc981d9ae21f4f33a6505edc93a77633f61
1 {-# LANGUAGE CPP #-}
2 module Main where
4 import Foo
6 bar :: Int
7 #ifdef TEST_OPTION
8 bar = TEST_OPTION
9 #else
10 bar = 0
11 #endif
13 main :: IO ()
14 main = do
15 putStrLn $ "hsc2hs value: " ++ show foo
16 putStrLn $ "ghc value: " ++ show bar