[cfe-commits] r57913 - /cfe/trunk/test/SemaObjC/property-10.m
Steve Naroff
snaroff at apple.com
Tue Oct 21 11:21:46 PDT 2008
Author: snaroff
Date: Tue Oct 21 13:21:45 2008
New Revision: 57913
URL: http://llvm.org/viewvc/llvm-project?rev=57913&view=rev
Log:
Fix <rdar://problem/6257645> clang static analyzer crashes when encountering blocks as objects
ASTContext::isObjCObjectPointerType() needs to consider blocks as objects.
Modified:
cfe/trunk/test/SemaObjC/property-10.m
Modified: cfe/trunk/test/SemaObjC/property-10.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/property-10.m?rev=57913&r1=57912&r2=57913&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/property-10.m (original)
+++ cfe/trunk/test/SemaObjC/property-10.m Tue Oct 21 13:21:45 2008
@@ -15,4 +15,8 @@
@property(assign, copy, retain) id p3_3; // expected-error {{property attributes 'assign' and 'copy' are mutually exclusive}}, expected-error {{property attributes 'assign' and 'retain' are mutually exclusive}}
@property id p4; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed}}, expected-warning {{default property attribute 'assign' not appropriate for non-gc object}}
+
+ at property(nonatomic,copy) int (^includeMailboxCondition)();
+ at property(nonatomic,copy) int (*includeMailboxCondition2)(); // expected-error {{property with 'copy' attribute must be of object type}}
+
@end
More information about the cfe-commits
mailing list