summaryrefslogtreecommitdiffstats
path: root/test/Sema/attr-osobject.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/attr-osobject.mm')
-rw-r--r--test/Sema/attr-osobject.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/attr-osobject.mm b/test/Sema/attr-osobject.mm
index adabb6df0f..8b3aadff80 100644
--- a/test/Sema/attr-osobject.mm
+++ b/test/Sema/attr-osobject.mm
@@ -8,8 +8,8 @@ struct S {};
- (void) takeS:(S*) __attribute__((os_consumed)) s;
@end
-typedef __attribute__((os_returns_retained)) id (^blockType)(); // expected-warning{{'os_returns_retained' attribute only applies to functions, Objective-C methods, and Objective-C properties}}
+typedef __attribute__((os_returns_retained)) id (^blockType)(); // expected-warning{{'os_returns_retained' attribute only applies to functions, Objective-C methods, Objective-C properties, and parameters}}
-__auto_type b = ^ id (id filter) __attribute__((os_returns_retained)) { // expected-warning{{'os_returns_retained' attribute only applies to functions, Objective-C methods, and Objective-C properties}}
+__auto_type b = ^ id (id filter) __attribute__((os_returns_retained)) { // expected-warning{{'os_returns_retained' attribute only applies to functions, Objective-C methods, Objective-C properties, and parameters}}
return filter;
};