When name lookup comes across a declaration that is in a module that
is not visible, look for any previous declarations of that entity that
might be visible.

llvm-svn: 146563
diff --git a/clang/test/Modules/Inputs/def.h b/clang/test/Modules/Inputs/def.h
new file mode 100644
index 0000000..c9bc36d
--- /dev/null
+++ b/clang/test/Modules/Inputs/def.h
@@ -0,0 +1,7 @@
+@interface A
+@end
+
+struct B {
+  int b1;
+};
+