ghc: add a test

Closes #27248.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>