[Git][ghc/ghc][wip/andreask/cfg-fix] 44 commits: Add regression test for #7803