[Git][ghc/ghc][wip/T26268] testsuite: Add regression test for #26268