]> granicus.if.org Git - clang/commitdiff
More retain/release naming convention tests.
authorTed Kremenek <kremenek@apple.com>
Mon, 23 Feb 2009 02:50:20 +0000 (02:50 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 23 Feb 2009 02:50:20 +0000 (02:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65303 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/refcnt_naming.m

index 9ffbf6c341d8ed4f73d115bf26e0cfe54dd72dfa..5af3711d2543390455b8696a768094970b493c0b 100644 (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
 }