Skip to content

Commit

Permalink
[arcmt] Add test for rdar://9601437.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133807 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
akyrtzi committed Jun 24, 2011
1 parent 921c143 commit cf79eba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/ARCMT/checking.m
Expand Up @@ -265,3 +265,16 @@ - (void)viewDidLoad {
value = [NSObject new]; // expected-error {{assigning retained object}}
}
@end

// rdar://9601437
@interface I9601437 {
__unsafe_unretained id x;
}
-(void)Meth;
@end

@implementation I9601437
-(void)Meth {
self->x = [NSObject new]; // expected-error {{assigning retained object}}
}
@end

0 comments on commit cf79eba

Please sign in to comment.