More retain/release naming convention tests.

llvm-svn: 65303
This commit is contained in:
Ted Kremenek 2009-02-23 02:50:20 +00:00
parent 5485a2f70b
commit e6d2b40bcc
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,8 @@ typedef signed char BOOL;
-(NSObject*)__blebPRCopy; // read as "bleb PRCopy"
-(NSObject*)__blebPRcopy; // read as "bleb P Rcopy"
-(NSObject*)new_theprefixdoesnotcount; // read as "theprefixdoesnotcount"
-(NSObject*)newestAwesomeStuff; // read as "newest awesome stuff"
@end
@interface MyClass : NSObject
@ -48,6 +50,7 @@ void testNames(NamingTest* x) {
[x __blebPRCopy]; // expected-warning{{leak}}
[x __blebPRcopy]; // no-warning
[x new_theprefixdoesnotcount]; // no-warning
[x newestAwesomeStuff]; // no-warning
}