Add PR check to suggest alternatives to using undef (#118506)
[llvm-project.git] / clang / test / SemaObjC / nowarn-superclass-method-mismatch.m
blobfa978b8c6eae5a8a8e3e89798dc421967ee0e959
1 // RUN: %clang_cc1  -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -Wsuper-class-method-mismatch -verify %s
2 // expected-no-diagnostics
4 @class NSString;
6 @interface Super
7 @property (nonatomic) NSString *thingy;
8 @property () __weak id PROP;
9 @end
11 @interface Sub : Super
12 @end
14 @implementation Sub
15 - (void)setThingy:(NSString *)val
17   [super setThingy:val];
19 @synthesize PROP;
20 @end