diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-12-17 07:11:57 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-12-17 07:11:57 +0000 |
| commit | b44f0f9abe8e399979d29d5b9ae0ede8884478b4 (patch) | |
| tree | 59cb8f75c9b7ac2d359bc512a2c3252b6e56284a /clang/test/Analysis | |
| parent | d14b0f1db7a6ca8b17adbeec25fea2eb2b907040 (diff) | |
| download | bcm5719-llvm-b44f0f9abe8e399979d29d5b9ae0ede8884478b4.tar.gz bcm5719-llvm-b44f0f9abe8e399979d29d5b9ae0ede8884478b4.zip | |
Fix assertion failure in cocoa::deriveNamingConvention()
when the selector is the string 'mutable'.
llvm-svn: 122046
Diffstat (limited to 'clang/test/Analysis')
| -rw-r--r-- | clang/test/Analysis/refcnt_naming.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Analysis/refcnt_naming.m b/clang/test/Analysis/refcnt_naming.m index f84dd6e0543..f30ae106546 100644 --- a/clang/test/Analysis/refcnt_naming.m +++ b/clang/test/Analysis/refcnt_naming.m @@ -13,6 +13,8 @@ typedef signed char BOOL; @interface NamingTest : NSObject {} -(NSObject*)copyPhoto; -(NSObject*)mutableCopyPhoto; +-(NSObject*)mutable; +-(NSObject*)mutableCopying; -(NSObject*)photocopy; // read as "photocopy" -(NSObject*)photoCopy; // read as "photo Copy" -(NSObject*)__blebPRCopy; // read as "bleb PRCopy" @@ -49,6 +51,8 @@ typedef signed char BOOL; void testNames(NamingTest* x) { [x copyPhoto]; // expected-warning{{leak}} [x mutableCopyPhoto]; // expected-warning{{leak}} + [x mutable]; // no-warning + [x mutableCopying]; // no-warning [x photocopy]; // no-warning [x photoCopy]; // no-warning [x __blebPRCopy]; // no-warning |

