[Git][ghc/ghc][wip/romes/27131] 22 commits: Add test for #25636