diff options
Diffstat (limited to 'clang/test/SemaObjC/arc.m')
-rw-r--r-- | clang/test/SemaObjC/arc.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/arc.m b/clang/test/SemaObjC/arc.m index 3f4c406458f..d146d8fad1d 100644 --- a/clang/test/SemaObjC/arc.m +++ b/clang/test/SemaObjC/arc.m @@ -294,6 +294,16 @@ void test12(id collection) { } @end +// <rdar://problem/10274056> +@interface Test13_B +- (id) consumesSelf __attribute__((ns_consumes_self)); +@end +@implementation Test13_B +- (id) consumesSelf { + self = 0; // no-warning +} +@end + // rdar://problem/9172151 @class Test14A, Test14B; void test14() { |