#3376: hpc and CPP don't mix on Windows
----------------------------+-----------------------------------------------
Reporter: igloo | Owner: [email protected]
Type: bug | Status: new
Priority: normal | Milestone: 6.12.1
Component: Code Coverage | Version: 6.10.4
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Os: Windows | Architecture: Unknown/Multiple
----------------------------+-----------------------------------------------
Originaly reported by Dominic Steinitz here:
http://www.haskell.org/pipermail/glasgow-haskell-
users/2009-July/017511.html
On Windows, with these files:
CommonHPC.hs:
{{{
module Main (main) where
import Common
main = do
test
test
test = do
putStrLn $ show $ fact 4
putStrLn $ show $ fact 5
}}}
Common.hs:
{{{
module Common (fact) where
fact 0 = 1
fact n = n * fact (n-1)
}}}
This works:
{{{
$ ghc -fhpc --make CommonHPC
$ ./CommonHPC
$ cat CommonHPC.exe.tix
Tix [ TixModule "Main" 693125724 18 [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
TixModule "Common" 4136915291 8 [2,9,9,9,9,9,9,11]]
}}}
but with `-cpp` we get no ticks for Common:
{{{
$ ghc -fhpc --make CommonHPC -cpp
$ ./CommonHPC
$ cat CommonHPC.exe.tix
Tix [ TixModule "Main" 693125724 18 [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
TixModule "Common" 3370079577 0 []]
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3376>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs