testsuite: Add test for #14129

Authored by bgamari on Sep 4 2017, 6:59 AM.

Description

testsuite: Add test for Trac #14129

It's not impossible that this will also get caught by another test given
a suitably configured compiler, but this is minimal enough that it seems
worth including.

Test Plan: Validate with DYNAMIC_GHC_PROGRAMS=NO

Reviewers: austin

Subscribers: rwbarton, thomie

GHC Trac Issues: Trac #14129

Differential Revision: https://phabricator.haskell.org/D3924