[cfe-commits] r133807 - /cfe/trunk/test/ARCMT/checking.m
Argyrios Kyrtzidis
akyrtzi at gmail.com
Fri Jun 24 11:41:23 PDT 2011
Author: akirtzidis
Date: Fri Jun 24 13:41:23 2011
New Revision: 133807
URL: http://llvm.org/viewvc/llvm-project?rev=133807&view=rev
Log:
[arcmt] Add test for rdar://9601437.
Modified:
cfe/trunk/test/ARCMT/checking.m
Modified: cfe/trunk/test/ARCMT/checking.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ARCMT/checking.m?rev=133807&r1=133806&r2=133807&view=diff
==============================================================================
--- cfe/trunk/test/ARCMT/checking.m (original)
+++ cfe/trunk/test/ARCMT/checking.m Fri Jun 24 13:41:23 2011
@@ -265,3 +265,16 @@
value = [NSObject new]; // expected-error {{assigning retained object}}
}
@end
+
+// rdar://9601437
+ at interface I9601437 {
+ __unsafe_unretained id x;
+}
+-(void)Meth;
+ at end
+
+ at implementation I9601437
+-(void)Meth {
+ self->x = [NSObject new]; // expected-error {{assigning retained object}}
+}
+ at end
More information about the cfe-commits
mailing list