diff options
Diffstat (limited to 'clang/test/Sema/attr-osobject.mm')
-rw-r--r-- | clang/test/Sema/attr-osobject.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/attr-osobject.mm b/clang/test/Sema/attr-osobject.mm index adabb6df0fc..8b3aadff801 100644 --- a/clang/test/Sema/attr-osobject.mm +++ b/clang/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; }; |