diff options
author | Steve Naroff <snaroff@apple.com> | 2008-10-21 18:21:45 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-10-21 18:21:45 +0000 |
commit | e94444faf32d5bf03e9d4e542fd3605e5e297ca7 (patch) | |
tree | 9cb3d1d73aed4275604632724d4323654d985882 | |
parent | 016fa4cd0dfd2690a4f8ba419c87e4b036eafcb5 (diff) | |
download | bcm5719-llvm-e94444faf32d5bf03e9d4e542fd3605e5e297ca7.tar.gz bcm5719-llvm-e94444faf32d5bf03e9d4e542fd3605e5e297ca7.zip |
Fix <rdar://problem/6257645> clang static analyzer crashes when encountering blocks as objects
ASTContext::isObjCObjectPointerType() needs to consider blocks as objects.
llvm-svn: 57913
-rw-r--r-- | clang/test/SemaObjC/property-10.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/property-10.m b/clang/test/SemaObjC/property-10.m index 69a5ae80fe3..2de5205a1fd 100644 --- a/clang/test/SemaObjC/property-10.m +++ b/clang/test/SemaObjC/property-10.m @@ -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 |