[Git][ghc/ghc][wip/romes/26640] Add test for #26640