[Git][ghc/ghc][wip/sjakobi/T16122] Add regression test for #16122