Test suite hangs at run-time without -O0
Summary
Test suite compiled with GHC 8.8.2 hangs at run-time without -O0
Steps to reproduce
git clone https://github.com/blamario/construct.git
cd construct
git checkout c0ef9c1a11c41b9dcd69c40f2af2dadbd21318d8
cabal test
The tests are passing.
Now delete the last line of construct.cabal
, namely
ghc-options: -O0
and run cabal test
again. The test suite hangs.
Expected behavior
The test suite should exhibit equivalent behaviour with -O0
and the default -O1
.
Environment
-
GHC version used: 8.8.2
-
Operating System: Fedora Linux 31
-
System Architecture: Intel x86_64