[Git][ghc/ghc][master] testsuite: Add regression test for #4081