6 Jan
2011
6 Jan
'11
6:42 p.m.
* Jürgen Doser
El jue, 06-01-2011 a las 16:41 -0400, Joey Hess escribió:
So, the problem seems to be that ghc -O2 somehow optimises the static assertBool _ True away, in what seems to be a bad way. Remove the -O2 and the test fails as expected. Presumably, although I have not verified, less static boolean values would not trigger the optimisation. Is this a ghc or HUnit bug?
(Versions: 6.12.1, 1.2.2.1)
Looks like a GHC bug.
Works with -fno-state-hack. -- Roman I. Cheplyaka :: http://ro-che.info/ Don't worry what people think, they don't do it very often.