Debian Codegraph @

clang/test/SemaObjC/nowarn-superclass-method-mismatch.m

raw
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