[Git][ghc/ghc][wip/T27844] 2 commits: Add regression test for #7803