]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/nowarn-superclass-method-mismatch.m
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / SemaObjC / nowarn-superclass-method-mismatch.m
1 // RUN: %clang_cc1  -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -Wsuper-class-method-mismatch -verify %s
2 // expected-no-diagnostics
3 // rdar://11793793
4
5 @class NSString;
6
7 @interface Super
8 @property (nonatomic) NSString *thingy;
9 @property () __weak id PROP;
10 @end
11
12 @interface Sub : Super
13 @end
14
15 @implementation Sub
16 - (void)setThingy:(NSString *)val
17 {
18   [super setThingy:val];
19 }
20 @synthesize PROP;
21 @end