diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Analysis/retain-release.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/retain-release.m b/test/Analysis/retain-release.m index 3bf350f0a5..ac136cb298 100644 --- a/test/Analysis/retain-release.m +++ b/test/Analysis/retain-release.m @@ -1210,7 +1210,7 @@ typedef NSString* MyStringTy; - (MyStringTy) returnsAnOwnedTypedString NS_RETURNS_RETAINED; // no-warning - (NSString*) newString NS_RETURNS_NOT_RETAINED; // no-warning - (NSString*) newStringNoAttr; -- (int) returnsAnOwnedInt NS_RETURNS_RETAINED; // expected-warning{{'ns_returns_retained' attribute only applies to functions or methods that return a pointer or Objective-C object}} +- (int) returnsAnOwnedInt NS_RETURNS_RETAINED; // expected-warning{{'ns_returns_retained' attribute only applies to methods that return an Objective-C object}} @end static int ownership_attribute_doesnt_go_here NS_RETURNS_RETAINED; // expected-warning{{'ns_returns_retained' attribute only applies to function or method types}} |