From 1723e17b78f8eb97dfc49b553a95a82cdf407ace Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 14 Sep 2011 18:03:46 +0000 Subject: objc-arc: warn when a 'retain' block property is declared which does not force a 'copy' of the block literal object. // rdar://9829425 llvm-svn: 139706 --- clang/test/SemaObjC/warn-retain-cycle.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/SemaObjC/warn-retain-cycle.m') diff --git a/clang/test/SemaObjC/warn-retain-cycle.m b/clang/test/SemaObjC/warn-retain-cycle.m index 71385b8400b..8530195756e 100644 --- a/clang/test/SemaObjC/warn-retain-cycle.m +++ b/clang/test/SemaObjC/warn-retain-cycle.m @@ -27,7 +27,7 @@ void test0(Test0 *x) { } @interface BlockOwner -@property (retain) void (^strong)(void); +@property (retain) void (^strong)(void); // expected-warning {{retain'ed block property does not copy the block - use copy attribute instead}} @end @interface Test1 { -- cgit v1.2.3