fix PR3932: [ObjC]Type defined as 'id' is not recognized as a valid object type.
by making ASTContext::isObjCObjectPointerType accept typedefs of id.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68931 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaObjC/property.m b/test/SemaObjC/property.m
index 40bb142..5a119c7 100644
--- a/test/SemaObjC/property.m
+++ b/test/SemaObjC/property.m
@@ -39,9 +39,17 @@
@property double bar;
@end
-int main() {
+int func1() {
id foo;
double bar = [foo bar];
return 0;
}
+// PR3932
+typedef id BYObjectIdentifier;
+@interface Foo1 {
+ void *isa;
+}
+@property(copy) BYObjectIdentifier identifier;
+@end
+