Adding testcase for PR18886.

Differential Revision: http://reviews.llvm.org/D3837