]> granicus.if.org Git - clang/commitdiff
Fix <rdar://problem/6257645> clang static analyzer crashes when encountering blocks...
authorSteve Naroff <snaroff@apple.com>
Tue, 21 Oct 2008 18:21:45 +0000 (18:21 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 21 Oct 2008 18:21:45 +0000 (18:21 +0000)
ASTContext::isObjCObjectPointerType() needs to consider blocks as objects.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57913 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/property-10.m

index 69a5ae80fe357d6bdff4a3b6148e5384dee61178..2de5205a1fd0189d99c2889c97d3c14fec89aff6 100644 (file)
@@ -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}}
+
+@property(nonatomic,copy) int (^includeMailboxCondition)(); 
+@property(nonatomic,copy) int (*includeMailboxCondition2)(); // expected-error {{property with 'copy' attribute must be of object type}}
+
 @end