diff options
Diffstat (limited to 'clang/test/SemaObjC')
| -rw-r--r-- | clang/test/SemaObjC/arc-decls.m | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/arc-decls.m b/clang/test/SemaObjC/arc-decls.m index c1c319d95e3..15fb78be089 100644 --- a/clang/test/SemaObjC/arc-decls.m +++ b/clang/test/SemaObjC/arc-decls.m @@ -154,3 +154,25 @@ struct __attribute__((objc_ownership(none))) S2 {}; // expected-error {{'objc_ow @property (readwrite, weak) ControllerClass *weak_controller; @end + +@interface I3 +@end + +@interface D3 : I3 +@end + +@interface D3 (Cat1) +- (id)method; +@end + +@interface I3 (Cat2) +// FIXME: clang should diagnose mismatch between methods in D3(Cat1) and +// I3(Cat2). +- (id)method __attribute__((ns_returns_retained)); +@end + +@implementation D3 +- (id)method { + return (id)0; +} +@end |

