diff options
| author | Akira Hatanaka <ahatanaka@apple.com> | 2018-02-06 23:44:40 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@apple.com> | 2018-02-06 23:44:40 +0000 |
| commit | 4c687f38c6369de9ad2fe734b99abd743fa60026 (patch) | |
| tree | 9f17175b6dab58cdf8ed815e4cf029f7623eb1a6 /clang/test/SemaObjC | |
| parent | cd07a3e2f9e7c35e90f82bc33cfec0be59c27568 (diff) | |
| download | bcm5719-llvm-4c687f38c6369de9ad2fe734b99abd743fa60026.tar.gz bcm5719-llvm-4c687f38c6369de9ad2fe734b99abd743fa60026.zip | |
[Sema][ObjC] Use SmallSetVector to fix a failing test on the reverse
iteration bot.
This commit reverts r315639, which was causing clang to print
diagnostics that weren't printed before. Instead, it declares
OverrideSearch::Overridden as a SmallSetVector to fix the
non-deterministic behavior r315639 was trying to fix.
rdar://problem/36445528
llvm-svn: 324425
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 |

