Add a non-regression test for issue #8372

I haven’t ran this from the actual test harness (I’m still building LLVM), but this file builds and runs as expected with a b2bd99860 2014-07-28 nightly binary.