xref: /llvm-project/clang/test/SemaObjC/nowarn-superclass-method-mismatch.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1  -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -Wsuper-class-method-mismatch -verify %s
2// expected-no-diagnostics
3
4@class NSString;
5
6@interface Super
7@property (nonatomic) NSString *thingy;
8@property () __weak id PROP;
9@end
10
11@interface Sub : Super
12@end
13
14@implementation Sub
15- (void)setThingy:(NSString *)val
16{
17  [super setThingy:val];
18}
19@synthesize PROP;
20@end
21