check whether any previous declarations of the class were visible.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146680
91177308-0d34-0410-b5e6-
96231b3b80d8
return FD->getPreviousDeclaration();
if (RedeclarableTemplateDecl *RTD = dyn_cast<RedeclarableTemplateDecl>(D))
return RTD->getPreviousDeclaration();
+ if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(D))
+ return ID->getPreviousDeclaration();
return 0;
}
__import_module__ decldef.Decl;
-// FIXME: No link between @interface (which we can't see) and @class
-// (which we can).
-// A *a2;
+A *a2;
B *b;
void testB() {