[index] Add a test for a crash with unnamed NamedDecls

Previously this would crash during record hashing.

rdar://problem/32474406
1 file changed