Test case for r181160 and r181161. rdar://13782395