Committed as r223460 with a few minor changes: Renamed the test file to be closer to the check name, re-formatted the test to LLVM style and made the CHECK-MESSAGES lines shorter. http://reviews.llvm.org/D6485