aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-10-21 18:21:45 +0000
committerSteve Naroff <snaroff@apple.com>2008-10-21 18:21:45 +0000
commit2bd03723e7a8c982ce7b35115f5cc8755aa7091c (patch)
tree0beeb673b23897222793d33f05e925c8a36ecddf
parent0165b0c09ef1f25d1818868a632f3565a677953d (diff)
Fix <rdar://problem/6257645> clang static analyzer crashes when encountering blocks as objects
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
-rw-r--r--test/SemaObjC/property-10.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaObjC/property-10.m b/test/SemaObjC/property-10.m
index 69a5ae80fe..2de5205a1f 100644
--- a/test/SemaObjC/property-10.m
+++ b/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