Test case for https://github.com/haskell/cabal/issues/1446 .