diff options
Diffstat (limited to 'clang/test/Analysis/NSString.m')
| -rw-r--r-- | clang/test/Analysis/NSString.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/NSString.m b/clang/test/Analysis/NSString.m index 481a94055ff..295cac4275e 100644 --- a/clang/test/Analysis/NSString.m +++ b/clang/test/Analysis/NSString.m @@ -302,7 +302,7 @@ void testOSCompareAndSwapXXBarrier() { void testOSCompareAndSwapXXBarrier_positive() { NSString *old = 0; - NSString *s = [[NSString alloc] init]; // expected-warning{{leak}} + NSString *s = [[NSString alloc] init]; // no-warning if (!COMPARE_SWAP_BARRIER((intptr_t) 0, (intptr_t) s, (intptr_t*) &old)) return; else @@ -326,7 +326,7 @@ void test_objc_atomicCompareAndSwap() { void test_objc_atomicCompareAndSwap_positive() { NSString *old = 0; - NSString *s = [[NSString alloc] init]; // expected-warning{{leak}} + NSString *s = [[NSString alloc] init]; // no-warning if (!objc_atomicCompareAndSwapPtr(0, s, &old)) return; else |

